Documentation ¶
Index ¶
- type Config
- type LogEntry
- func (e *LogEntry) Debugf(format string, v ...interface{})
- func (e *LogEntry) Errorf(format string, v ...interface{})
- func (e *LogEntry) Fatalf(format string, v ...interface{})
- func (e *LogEntry) Infof(format string, v ...interface{})
- func (e *LogEntry) Noticef(format string, v ...interface{})
- func (e *LogEntry) Tracef(format string, v ...interface{})
- func (e *LogEntry) Warnf(format string, v ...interface{})
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` Debug bool `toml:"debug"` Trace bool `toml:"trace"` Name string `toml:"name"` ServiceAddr string `toml:"service_addr"` ClusterAddr string `toml:"cluster_addr"` ClusterName string `toml:"cluster_name"` GatewayAddr string `toml:"gateway_addr"` GatewayAdvertise string `toml:"gateway_advertise"` Gateways []string `toml:"gateways"` Routes []string `toml:"routes"` JetStream bool `toml:"jetstream"` StoreDir string `toml:"jetstream_store_dir"` // Seconds to wait for JetStream to become ready (can take a lot of time when connecting to a cluster) JetStreamReadyTimeout int `toml:"jetstream_ready_timeout"` }
Config represents NATS service configuration
type LogEntry ¶
LogEntry represents LoggerV2 decorator for nats server logger
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents NATS service
func NewService ¶
NewService returns an instance of NATS service
func (*Service) Description ¶
func (*Service) WaitJetStreamReady ¶ added in v1.4.7
Click to show internal directories.
Click to hide internal directories.