Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogOptions ¶
type LogOptions struct {
Verbosity int `name:"verbose" short:"v" type:"counter" default:"0" env:"LOG_LEVEL" help:"Set the verbosity of logs e.g. -vv"`
}
func (*LogOptions) ConfigureLogger ¶
func (lo *LogOptions) ConfigureLogger()
type NatsOptions ¶
type NatsOptions struct { NatsUrl string `short:"n" env:"NATS_URL" default:"nats://localhost:4222"` NatsCredentials string `short:"c" env:"NATS_CREDENTIALS_FILE" required:"" type:"path"` }
func (*NatsOptions) Connect ¶
func (no *NatsOptions) Connect() *nats.Conn
Click to show internal directories.
Click to hide internal directories.