Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogger ¶
Types ¶
type Config ¶
type Config struct { NatsURL string `env:"NATS_URL" envDefault:"nats://localhost:4222" validate:"required,url"` NatsInputSubject string `env:"NATS_INPUT_SUBJECT" envDefault:"rules.engine.input" validate:"required"` NatsOutputSubject string `env:"NATS_OUTPUT_SUBJECT" envDefault:"rules.engine.output" validate:"required"` NatsInputStream string `env:"NATS_INPUT_STREAM" envDefault:"RULES_INPUT" validate:"required"` NatsOutputStream string `env:"NATS_OUTPUT_STREAM" envDefault:"RULES_OUTPUT" validate:"required"` LogLevel string `env:"LOG_LEVEL" envDefault:"info" validate:"oneof=debug info warn error"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.