Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Api struct { Port uint16 `envconfig:"API_PORT" default:"8080" required:"true"` Matches MatchesConfig Consumer ConsumerConfig } Log struct { Level int `envconfig:"LOG_LEVEL" default:"-4" required:"true"` } Queue QueueConfig }
func NewConfigFromEnv ¶
type ConsumerConfig ¶
type MatchesConfig ¶
type QueueConfig ¶
type QueueConfig struct { BatchSize uint32 `envconfig:"QUEUE_BATCH_SIZE" default:"100" required:"true"` FallBack struct { Enabled bool `envconfig:"QUEUE_FALLBACK_ENABLED" default:"true" required:"true"` Suffix string `envconfig:"QUEUE_FALLBACK_SUFFIX" default:"fallback" required:"true""` } Limit uint32 `envconfig:"QUEUE_LIMIT" default:"1000" required:"true"` Name string `envconfig:"QUEUE_NAME" default:"reader" required:"true"` BackoffEmpty time.Duration `envconfig:"QUEUE_BACKOFF_EMPTY" default:"1s" required:"true"` BackoffError time.Duration `envconfig:"QUEUE_BACKOFF_ERROR" default:"1s" required:"true"` Uri string `envconfig:"QUEUE_URI" default:"queue:8080" required:"true"` }
Click to show internal directories.
Click to hide internal directories.