Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //AppName name of the app AppName string //BindAddress where app server should listen BindAddress string //BindAddressInternal where internal server should listen BindAddressInternal string //TLSEnabled is TLS enabled TLSEnabled bool //TLSCert TLS cert file to use TLSCert string //TLSKey TLS key file to use TLSKey string //RulesFile path where the rules file located RulesFile string //Rules rules Rules []Rule )
View Source
var ( //LogLevel app-wide logger level LogLevel logrus.Level //LogFormat app-wide log formatter LogFormat logrus.Formatter //AppLogger app-wide logger AppLogger *CustomLogger )
View Source
var ( Version = "undefined" GitCommit = "undefined" GitState = "undefined" BuildDate = "undefined" )
Functions ¶
Types ¶
type CustomLogger ¶
CustomLogger logrus logger with helper methods
func (*CustomLogger) WithData ¶
func (l *CustomLogger) WithData(data interface{}) *logrus.Entry
WithData embed data field
Click to show internal directories.
Click to hide internal directories.