Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type CacheConfig struct { Redis *RedisCacheConfig `yaml:"redis" mapstructure:"redis"` Local *LocalCacheConfig `yaml:"local" mapstructure:"local"` }
type Config ¶
type Config struct { base.Options `yaml:",inline" mapstructure:",squash"` Server *ServerConfig `yaml:"server" mapstructure:"server"` Database *DatabaseConfig `yaml:"database" mapstructure:"database"` Cache *CacheConfig `yaml:"cache" mapstructure:"cache"` }
type DatabaseConfig ¶
type DatabaseConfig struct { Mysql *MysqlConfig `yaml:"mysql" mapstructure:"mysql"` Redis *RedisConfig `yaml:"redis" mapstructure:"redis"` }
type LocalCacheConfig ¶
type MysqlConfig ¶
type RedisCacheConfig ¶
type RedisConfig ¶
type RestConfig ¶
type RestConfig struct {
Addr string `yaml:"addr" mapstructure:"addr"`
}
type ServerConfig ¶
type ServerConfig struct { GRPC *TCPListenConfig `yaml:"grpc" mapstructure:"grpc"` REST *RestConfig `yaml:"rest" mapstructure:"rest"` }
type TCPListenConfig ¶
type TCPListenConfig struct { // Listen stands listen interface, like: 0.0.0.0, 192.168.0.1 Listen string `mapstructure:"listen" yaml:"listen"` // PortRange stands listen port PortRange TCPListenPortRange `yaml:"port" mapstructure:"port"` }
type TCPListenPortRange ¶
Click to show internal directories.
Click to hide internal directories.