package
Version:
v0.0.0-...-b40c5a5
Opens a new window with list of versions in this module.
Published: Apr 28, 2018
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewRetryMiddleware creates a new retry middleware
type Config struct {
Attempts int `json:"attempts"`
Backoff Duration `json:"backoff"`
Predicate string `json:"predicate"`
}
Config represents the Body Limit configuration
Duration is a wrapper for time.Duration so we can use human readable configs
UnmarshalJSON is the implementation of the UnmarshalJSON interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.