Documentation ¶
Index ¶
- Constants
- func NewHerContext(c *gin.Context) *herContext
- type Context
- type FileSplitHook
- type Formatter
- type ILog
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugln(args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoln(args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnln(args ...interface{})
- type Response
Constants ¶
View Source
const ( ServerTypeHTTP = "http" ServerTypeCron = "cron" ServerTypeMQ = "mq" )
Variables ¶
This section is empty.
Functions ¶
func NewHerContext ¶
Types ¶
type Context ¶
type Context struct { Log ILog ToolBox component.IToolBox Type string // contains filtered or unexported fields }
func GetContext ¶
func GetCronContext ¶
func GetCronContext() *Context
func GetMQContext ¶
func (*Context) CheckStruct ¶
type FileSplitHook ¶
type FileSplitHook struct {
// contains filtered or unexported fields
}
func NewFileSplitHook ¶
func NewFileSplitHook() *FileSplitHook
func (*FileSplitHook) Levels ¶
func (f *FileSplitHook) Levels() []logrus.Level
type ILog ¶
type ILog interface { Info(args ...interface{}) Infof(format string, args ...interface{}) Infoln(args ...interface{}) Debug(args ...interface{}) Debugf(format string, args ...interface{}) Debugln(args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Warnln(args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Errorln(args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Fatalln(args ...interface{}) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.