Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAPIConfig ¶
type AdminAPIConfig struct { Logger logger.LogConfig Basic BasicConfig DB DBConfig ServerOptions ServerOptionsConfig JWT JWTConfig `envPrefix:"JWT_"` }
func GetAdminAPIConfig ¶
func GetAdminAPIConfig() *AdminAPIConfig
func (*AdminAPIConfig) Validate ¶
func (c *AdminAPIConfig) Validate() error
type BasicConfig ¶
type ServerOptionsConfig ¶
type ServerOptionsConfig struct { Bind string `env:"SERVER_BIND" envDefault:":9000"` ProbeBind string `env:"SERVER_PROBE_BIND" envDefault:":9091"` MetricsBind string `env:"SERVER_METRICS_BIND" envDefault:":9090"` ReadTimeout time.Duration `env:"SERVER_READ_TIMEOUT" envDefault:"40s"` WriteTimeout time.Duration `env:"SERVER_WRITE_TIMEOUT" envDefault:"40s"` IdleTimeout time.Duration `env:"SERVER_IDLE_TIMEOUT" envDefault:"40s"` }
type UserAPIConfig ¶
type UserAPIConfig struct { Logger logger.LogConfig Basic BasicConfig DB DBConfig ServerOptions ServerOptionsConfig JWT JWTConfig `envPrefix:"JWT_"` }
func GetUserAPIConfig ¶
func GetUserAPIConfig() *UserAPIConfig
func (*UserAPIConfig) Validate ¶
func (c *UserAPIConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.