Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeBodyContent ¶
func EncodeBodyContent(content interface{}) (io.ReadCloser, error)
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, r *http.Request, err error)
Types ¶
type RetryLogger ¶
type RetryLogger struct {
// contains filtered or unexported fields
}
RetryLogger This is a wrapper of logrus for `go-retryablehttp`
func NewRetryLogger ¶
func NewRetryLogger(logger *log.Entry) *RetryLogger
func (*RetryLogger) Debug ¶
func (l *RetryLogger) Debug(msg string, keysAndValues ...interface{})
Debug This redirects the Debug messages to Trace level as the library is displaying way too many messages
func (*RetryLogger) Error ¶
func (l *RetryLogger) Error(msg string, keysAndValues ...interface{})
func (*RetryLogger) Info ¶
func (l *RetryLogger) Info(msg string, keysAndValues ...interface{})
func (*RetryLogger) Warn ¶
func (l *RetryLogger) Warn(msg string, keysAndValues ...interface{})
Click to show internal directories.
Click to hide internal directories.