Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = viper.New()
Config is the global configuration varaible
View Source
var ErrorStatus = Status{400, "Request failed"}
ErrorStatus return on success
View Source
var Log boxlogger
Log Global Log variable
View Source
var SuccessStatus = Status{200, "Request succeed"}
SuccessStatus return on success
Functions ¶
func CreateLogger ¶
CreateLogger create a new logrus Logger object
Types ¶
type EventCode ¶
type EventCode int
EventCode type
const ( // Info event Info EventCode // Script event Script // Command event Command )
func (EventCode) MarshalJSON ¶
MarshalJSON return JSON
func (*EventCode) UnmarshalJSON ¶
UnmarshalJSON parse JSON
Click to show internal directories.
Click to hide internal directories.