Documentation ¶
Index ¶
- Constants
- Variables
- type CommandsDefinition
- type CommandsDefinitions
- type CommandsMaker
- type Definitions
- type Level
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) Warning(args ...interface{})
- func (l *Logger) Warningf(format string, args ...interface{})
- type Settings
Constants ¶
View Source
const ( PanicLogLevel = Level(log.PanicLevel) FatalLogLevel = Level(log.FatalLevel) ErrorLogLevel = Level(log.ErrorLevel) WarnLogLevel = Level(log.WarnLevel) InfoLogLevel = Level(log.InfoLevel) DebugLogLevel = Level(log.DebugLevel) TraceLogLevel = Level(log.TraceLevel) )
Variables ¶
View Source
var Log = Logger{}
Functions ¶
This section is empty.
Types ¶
type CommandsDefinition ¶
type CommandsDefinition struct { Name string `json:"name"` Description string `json:"description"` Maker CommandsMaker `json:"-"` }
type CommandsDefinitions ¶
type CommandsDefinitions []CommandsDefinition
type Definitions ¶
type Definitions struct {
CommandsDefinitions
}
func MergeDefinitions ¶
func MergeDefinitions(a, b Definitions) Definitions
func (Definitions) Marshal ¶
func (d Definitions) Marshal() map[string]interface{}
func (Definitions) MarshalJSON ¶
func (d Definitions) MarshalJSON() ([]byte, error)
We perform JSON marshalling manually to gain more flexibility...
Click to show internal directories.
Click to hide internal directories.