Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFailoverRedis ¶
func InitFailoverRedis(masterName string, sentinelAddrs []string, password string, timeout time.Duration) (*redis.Client, error)
InitFailoverRedis init redis with sentinels
func MakeAccessLog ¶
Types ¶
type Config ¶
type Config struct { ServiceID string NodeID int64 Listen string `default:":8080"` PublicAddress string PublicPort int `default:"8080"` Tags []string ConsulURL string RedisAddrs string Driver string `default:"mysql"` BaseDb string MessageDb string LogLevel string `default:"INFO"` }
Config Config
Click to show internal directories.
Click to hide internal directories.