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 Reader ReaderConfig } Log struct { Level int `envconfig:"LOG_LEVEL" default:"-4" required:"true"` } Queue QueueConfig }
func NewConfigFromEnv ¶
type MatchesConfig ¶
type MatchesConfig struct {
Uri string `envconfig:"API_MATCHES_URI" default:"matches:8080" required:"true"`
}
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:"router" required:"true"` BackoffError time.Duration `envconfig:"QUEUE_BACKOFF_ERROR" default:"1s" required:"true"` Uri string `envconfig:"QUEUE_URI" default:"queue:8080" required:"true"` }
type ReaderConfig ¶
type ReaderConfig struct { Pool ReaderPoolConfig Uri string `envconfig:"API_READER_URI" default:"reader:8080" required:"true"` }
type ReaderPoolConfig ¶
type ReaderPoolConfig struct {
Limit uint32 `envconfig:"API_READER_POOL_LIMIT" default:"1000" required:"true"`
}
Click to show internal directories.
Click to hide internal directories.