Documentation
¶
Index ¶
- func SetHeader(name string, v func() IHeader)
- func SetLog(name string, v func() ILogger)
- func SetMessage(name string, v func() IEventMessage)
- func SetSign(name string, v func() ISign)
- func SetToken(name string, v func() IToken)
- type IError
- type IEventMessage
- type IHeader
- type ILogger
- type ISign
- type IToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMessage ¶
func SetMessage(name string, v func() IEventMessage)
Types ¶
type IEventMessage ¶
type IEventMessage interface {
// init event message client
InitMessageClient()
// listen event message
SubEventMessage(f interface{})
// stop event message receive
Stop()
}
func GetMessage ¶
func GetMessage(name string) IEventMessage
type ILogger ¶
type ILogger interface {
SetLevel(level int)
Debug(v ...interface{})
Debugf(format string, v ...interface{})
Info(v ...interface{})
Infof(format string, v ...interface{})
Warn(v ...interface{})
Warnf(format string, v ...interface{})
Error(v ...interface{})
Errorf(format string, v ...interface{})
Fatal(v ...interface{})
Fatalf(format string, v ...interface{})
}
log interface
Click to show internal directories.
Click to hide internal directories.