Versions in this module Expand all Collapse all v1 v1.1.0 Mar 7, 2020 Changes in this version + func ErrorInheritf(err error, msg string, f ...interface{}) error + func ErrorPermf(msg string, f ...interface{}) error + func ErrorTempf(msg string, f ...interface{}) error + func IsErrorTemporary(err error) bool + func LoggerHeader(l Source) string + func RetryForever(ctx context.Context, p RetryParams) (err error) + type Common interface + Close func() error + Name func() string + SetDebug func(bool) + SetVerbose func(bool) + Stats func() string + Status func() error + Type func() string + type Error struct + func (e Error) Error() string + func (e Error) Temporary() bool + type Logger struct + func LoggerCreate(l Source, v *viper.Viper) *Logger + func (l *Logger) Debugf(m string, f ...interface{}) + func (l *Logger) Errorf(m string, f ...interface{}) + func (l *Logger) LogDebugEv(uuid string, m string, f ...interface{}) + func (l *Logger) LogEv(uuid string, m string, f ...interface{}) + func (l *Logger) LogVerboseEv(uuid string, m string, f ...interface{}) + func (l *Logger) Logf(m string, f ...interface{}) + func (l *Logger) SetDebug(d bool) + func (l *Logger) SetVerbose(d bool) + type RetryParams struct + ErrorCounter *uint64 + ErrorMsg string + F func() error + Interval time.Duration + Logger *Logger + PromErrorCounter prometheus.Counter + RetryPermanentError bool + type Source interface + Name func() string + Type func() string