Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct { GracefulShutdownTimeout time.Duration `yaml:"graceful_shutdown_timeout"` ForceShutdownTimeout time.Duration `yaml:"force_shutdown_timeout"` App string `yaml:"app"` }
func (*ApplicationConfig) Validate ¶
func (c *ApplicationConfig) Validate() error
type AuthClientConfig ¶
type AuthClientConfig struct { Enable bool `yaml:"enable"` Conn xclients.GRPCClientConnConfig `yaml:"conn"` }
func (*AuthClientConfig) Validate ¶
func (c *AuthClientConfig) Validate() error
type Config ¶
type Config struct { Logger xlogger.LoggerConfig `yaml:"logger"` Application ApplicationConfig `yaml:"application"` PublicServer xservers.ServerConfig `yaml:"public_server"` AdminServer xservers.ServerConfig `yaml:"admin_server"` InternalGRPCServer xservers.GRPCServerConfig `yaml:"internal_grpc_server"` Storage xstorage.StorageConfig `yaml:"storage"` SecondStorage xstorage.StorageConfig `yaml:"second_storage"` AuthClient AuthClientConfig `yaml:"auth"` CounterClient CounterClientConfig `yaml:"counter"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type CounterClientConfig ¶
type CounterClientConfig struct { Enable bool `yaml:"enable"` Conn xclients.GRPCClientConnConfig `yaml:"conn"` }
func (*CounterClientConfig) Validate ¶
func (c *CounterClientConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.