Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶ added in v1.7.2
func ValidateConfig(config *GlobalConfig) error
Types ¶
type EventBusConfig ¶
type EventBusConfig struct { NATS *StanConfig `json:"nats"` JetStream *JetStreamConfig `json:"jetstream"` }
type GlobalConfig ¶
type GlobalConfig struct {
EventBus *EventBusConfig `json:"eventBus"`
}
func LoadConfig ¶
func LoadConfig(onErrorReloading func(error)) (*GlobalConfig, error)
func (*GlobalConfig) GetJetStreamVersion ¶
func (g *GlobalConfig) GetJetStreamVersion(version string) (*JetStreamVersion, error)
func (*GlobalConfig) GetSTANVersion ¶
func (g *GlobalConfig) GetSTANVersion(version string) (*StanVersion, error)
type JetStreamConfig ¶
type JetStreamConfig struct { Settings string `json:"settings"` StreamConfig string `json:"streamConfig"` Versions []JetStreamVersion `json:"versions"` }
type JetStreamVersion ¶
type StanConfig ¶
type StanConfig struct {
Versions []StanVersion `json:"versions"`
}
type StanVersion ¶
Click to show internal directories.
Click to hide internal directories.