Documentation ¶
Overview ¶
Package config contains configurations and command line arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChoreConfig ¶
type ChoreConfig struct { Interval time.Duration `` /* 169-byte string literal not displayed */ InitialDelay time.Duration `` /* 198-byte string literal not displayed */ InitialRandom bool `` /* 170-byte string literal not displayed */ }
ChoreConfig contains configurations for background jobs.
type PaginationConfig ¶
type PaginationConfig struct { MaxLimit int `` /* 146-byte string literal not displayed */ MaxOffset int `` /* 155-byte string literal not displayed */ }
PaginationConfig contains configurations for pagination.
type ServerConfig ¶
type ServerConfig struct { Port uint `arg:"-p,--port,env:PORT" placeholder:"PORT" help:"port on which to listen for API requests" default:"80"` Bind string `arg:"-b,--bind,env:BIND" placeholder:"ADDR" help:"address on which to listen for API requests" default:"0.0.0.0"` }
ServerConfig contains configurations for the API server.
Click to show internal directories.
Click to hide internal directories.