Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name"` BaseURL string `yaml:"baseUrl"` JWT JWT `yaml:"jwt"` Persistent Persistent `yaml:"persistent"` EventBus EventBus `yaml:"eventBus"` Providers Providers `yaml:"providers"` Test Test `yaml:"test"` }
func LoadConfig ¶
type Consumer ¶
type Consumer struct { Name string Stream string Config json.RawMessage }
func (*Consumer) UnmarshalYAML ¶
type EventBus ¶
type EventBus struct { Provider TransportProvider Host string Port int Users Users }
func (*EventBus) UnmarshalYAML ¶
type JWT ¶
type JWT struct { Secret string Timeout time.Duration Refresh struct { Enabled bool Maximum time.Duration } }
func (*JWT) UnmarshalYAML ¶
type Persistent ¶
type Persistent struct { Driver PersistentDriver Name string Host string Port int Username string Password string InMem bool }
func (*Persistent) UnmarshalYAML ¶
func (p *Persistent) UnmarshalYAML(value *yaml.Node) error
type PersistentDriver ¶
type PersistentDriver int
const ( SQLite PersistentDriver = iota BadgerDB InMem )
func ParsePersistentDriver ¶
func ParsePersistentDriver(driver string) (PersistentDriver, error)
type Stream ¶
type Stream struct { Name string Config json.RawMessage }
func (*Stream) UnmarshalYAML ¶
type TransportProvider ¶
type TransportProvider int
const NATS TransportProvider = iota
func ParseTransportProvider ¶
func ParseTransportProvider(provider string) (TransportProvider, error)
Click to show internal directories.
Click to hide internal directories.