Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseConfig ¶
type BaseConfig struct { ServerId string `json:"server_id" toml:"server_id"` ServerGroup string `json:"server_group" toml:"server_group"` ServerName string `json:"server_name" toml:"server_name"` ServerType string `json:"server_type" toml:"server_type"` }
func (*BaseConfig) String ¶
func (m *BaseConfig) String() string
type CacheConfig ¶
type MiddlewareConfig ¶
type PluginConfig ¶
type RedisConfig ¶
type ServerConfig ¶
type ServerConfig struct { BaseConfig *BaseConfig `json:"base_config" toml:"base_config"` LogConfig *LogConfig `json:"log_config" toml:"log_config"` //PluginConfig *PluginConfig `json:"plugin_config"` //DbConfig *DbConfig `json:"db_config"` //CacheConfig *CacheConfig `json:"cache_config"` Tracer opentracing.Tracer }
func (*ServerConfig) GetTracer ¶
func (m *ServerConfig) GetTracer() opentracing.Tracer
type StaticFileConfig ¶
type StaticFileConfig interface { GetServer() *ServerConfig GetCache() *RedisConfig }
type YamlConfig ¶
type YamlConfig struct { Server *ServerConfig `yaml:"server"` Redis *RedisConfig `yaml:"redis"` }
func (*YamlConfig) GetCache ¶
func (m *YamlConfig) GetCache() *RedisConfig
func (*YamlConfig) GetServer ¶
func (m *YamlConfig) GetServer() *ServerConfig
Click to show internal directories.
Click to hide internal directories.