github.com/anycable/anycable-go@v1.5.1/enats/enats_unsupported.go (about) 1 //go:build freebsd && !amd64 2 // +build freebsd,!amd64 3 4 package enats 5 6 import ( 7 "context" 8 "errors" 9 "log/slog" 10 ) 11 12 // NewConfig returns defaults for NATSServiceConfig 13 func NewConfig() Config { 14 return Config{} 15 } 16 17 type Service struct{} 18 19 func (Service) Description() string { return "" } 20 func (Service) Start() error { 21 return errors.New("embedded NATS is not supported for the current platform") 22 } 23 func (Service) Shutdown(ctx context.Context) error { return nil } 24 25 func NewService(c *Config, l *slog.Logger) *Service { 26 return &Service{} 27 } 28 29 func (s *Service) WaitJetStreamReady(v int) error { 30 return errors.New("not implemented") 31 }