Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidParameter = errors.New("invalid parameter")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server *ServerConfig `json:"server,omitempty" yaml:"server"` Redis *RedisConfig `json:"redis,omitempty" yaml:"redis"` }
func NewTestConfig ¶
func NewTestConfig() *Config
type RedisConfig ¶
type RedisConfig struct { Network string `json:"network,omitempty" yaml:"network"` Addr string `json:"addr,omitempty" yaml:"addr"` Username string `json:"username,omitempty" yaml:"username"` Password string `json:"password,omitempty" yaml:"password"` Database int `json:"database,omitempty" yaml:"database"` KeyPrefix string `json:"key_prefix,omitempty" yaml:"key_prefix"` KeyExpire int `json:"key_expire,omitempty" yaml:"key_expire"` }
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.