Documentation
¶
Index ¶
Constants ¶
View Source
const CONFIG_FILENAME string = "config.yaml"
View Source
const CONFIG_FILENAME_SAMPLE string = "config-sample.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct { GrpcServer GrpcServerConfig `yaml:"grpc_server"` GrpcClient GrpcClientConfig `yaml:"grpc_client"` HttpServer HttpServerConfig `yaml:"http_server"` Rabbit RabbitConfig `yaml:"rabbitmq"` TcpClient TcpClientConfig `yaml:"tcp_client"` TcpServer TcpServerConfig `yaml:"tcp_server"` TcpProxyServer TcpProxyServerConfig `yaml:"proxy_server"` Sql SqlConfig `yaml:"sql"` SecretKey string `yaml:"secret_key"` Kafka KafkaConfig `yaml:"kafka"` Redis RedisConfig `yaml:"redis"` Websocket WebsocketConfig `yaml:"websocket"` MailClient MailClientConfig `yaml:"mail_client"` }
type GrpcClientConfig ¶
type GrpcClientConfig struct {
ServerAddress string `yaml:"grpc_server"`
}
type GrpcServerConfig ¶
type GrpcServerConfig struct {
Address string `yaml:"grpc_addr"`
}
type HttpServerConfig ¶
type HttpServerConfig struct {
Address string `yaml:"http_addr"`
}
type KafkaConfig ¶
type MailClientConfig ¶
type RabbitConfig ¶
type RedisConfig ¶
type TcpClientConfig ¶
type TcpProxyServerConfig ¶
type TcpProxyServerConfig struct {
ProxyAddress string `yaml:"proxy_address"`
}
type TcpServerConfig ¶
type TcpServerConfig struct {
TcpPort string `yaml:"tcp_addr"`
}
type WebsocketConfig ¶
type WebsocketConfig struct {
Addr string `yaml:"websocket_addr"`
}
Click to show internal directories.
Click to hide internal directories.