Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtendedServerConfig ¶
type ExtendedServerConfig struct {
HttpServerConfig
}
func GetExtendedConfig ¶
func GetExtendedConfig() (*ExtendedServerConfig, error)
type FilesPathConfig ¶
type FilesPathConfig struct {
AdsDatabasePath string `env:"ADS_DATABASE_PATH" env-default:"./ads.json"`
}
type HttpServerConfig ¶
type HttpServerConfig struct { ListenNetwork string `env:"LISTEN_NETWORK" env-default:"tcp4"` ListenAddr string `env:"LISTEN_ADDR" env-default:":8080"` FilesPathConfig }
func GetHTTPServerConfig ¶
func GetHTTPServerConfig() (*HttpServerConfig, error)
func (*HttpServerConfig) GetAdsDatabasePath ¶
func (c *HttpServerConfig) GetAdsDatabasePath() string
func (*HttpServerConfig) GetListenAddr ¶
func (c *HttpServerConfig) GetListenAddr() string
func (*HttpServerConfig) GetListenNetwork ¶
func (c *HttpServerConfig) GetListenNetwork() string
Click to show internal directories.
Click to hide internal directories.