Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Attempts int `json:"attempts"` Backoff Duration `json:"backoff"` Predicate string `json:"predicate"` }
Config represents the Body Limit configuration
type Duration ¶
Duration is a wrapper for time.Duration so we can use human readable configs
func (*Duration) MarshalJSON ¶
MarshalJSON is the implementation of the MarshalJSON interface
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON is the implementation of the UnmarshalJSON interface
Click to show internal directories.
Click to hide internal directories.