Documentation ¶
Index ¶
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func GetConsulConfig(host string, port int64, prefix string) (config.Config, error)
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func NewTracer(serviceName string, addr string) (opentracing.Tracer, io.Closer, error)
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func PrometheusBoot(port int)
- func SwapTo(request, target interface{}) (err error)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type MysqlConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsulConfig ¶
func PrometheusBoot ¶
func PrometheusBoot(port int)
Types ¶
type MysqlConfig ¶
type MysqlConfig struct { Host string `json:"host"` User string `json:"user"` Pwd string `json:"pwd"` Database string `json:"database"` Port string `json:"port"` }
func GetMysqlFromConsul ¶
func GetMysqlFromConsul(config config.Config, path ...string) *MysqlConfig
Click to show internal directories.
Click to hide internal directories.