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 //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 app version Version = "undefined" //GitCommit git commit GitCommit = "undefined" //GitState git state GitState = "undefined" //BuildDate build date 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.