Documentation
¶
Index ¶
- func GetIntMustOption(optionName string, data map[string]interface{}) interface{}
- func GetIntOption(optionName string, data map[string]interface{}) interface{}
- func GetSentinel() map[string]*redis.Client
- func GetStringMustOption(optionName string, data map[string]interface{}) interface{}
- func GetStringOption(optionName string, data map[string]interface{}) interface{}
- func InitRedisSentinel(config *viper.Viper, name string)
- func SetRedisDb(m map[string]interface{}, nodeName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIntMustOption ¶
*
- @Author yNsLuHan
- @Description:
- @Time 2021-08-23 12:12:08
- @param optionName
- @param data
- @return string
func GetIntOption ¶
*
- @Author yNsLuHan
- @Description:
- @Time 2021-08-23 12:12:08
- @param optionName
- @param data
- @return string
func GetSentinel ¶
func GetSentinel() map[string]*redis.Client
*
- @Author yNsLuHan
- @Description:
- @Time 2021-08-23 16:07:48
- @return map[string]*redis.Client
func GetStringMustOption ¶
*
- @Author yNsLuHan
- @Description:
- @Time 2021-08-23 12:12:08
- @param optionName
- @param data
- @return string
func GetStringOption ¶
*
- @Author yNsLuHan
- @Description:
- @Time 2021-08-23 12:12:08
- @param optionName
- @param data
- @return string
func InitRedisSentinel ¶ added in v1.0.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.