utils

package
v0.0.0-...-3f08b3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *zap.SugaredLogger

GetLogger 获取一个 日志 对象

func NeverMind

func NeverMind(_ error)

NeverMind 忽略错误

Types

type ConfigObj

type ConfigObj struct {
	// contains filtered or unexported fields
}

ConfigObj 配置参数对象

func NewConfig

func NewConfig(configFileName string) (*ConfigObj, error)

NewConfig 生成新的配置参数

func (*ConfigObj) GetClusterURL

func (c *ConfigObj) GetClusterURL() string

GetClusterURL 获取 GetClusterURL

func (*ConfigObj) GetRedisURL

func (c *ConfigObj) GetRedisURL() string

GetRedisURL 获取 GetRedisURL

func (*ConfigObj) GetSecond

func (c *ConfigObj) GetSecond() uint

GetSecond 获取 SecondToStop

func (*ConfigObj) GetSentinelURL

func (c *ConfigObj) GetSentinelURL() string

GetSentinelURL 获取 GetSentinelURL

func (*ConfigObj) String

func (c *ConfigObj) String() string

String 定制打印输出

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL