Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeProd = "prod" ModeDev = "dev" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTCClientConfig ¶
type CoinConfig ¶
type RedisConfig ¶
type RedisConfig struct { Host string Port int Password string DBNum int RedisPoolConfig }
func (*RedisConfig) FormatAddress ¶
func (conf *RedisConfig) FormatAddress() string
type RedisPoolConfig ¶
type ServerConfig ¶
func (*ServerConfig) FormatHostPort ¶
func (c *ServerConfig) FormatHostPort() string
func (*ServerConfig) IsValidMode ¶
func (c *ServerConfig) IsValidMode() bool
type SphereConfig ¶
type SphereConfig struct {
Configs map[string]CoinConfig
}
func NewSphereConfig ¶
func NewSphereConfig() *SphereConfig
Click to show internal directories.
Click to hide internal directories.