Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMessage ¶
FormatMessage formats the message according to the format string
func NewThrottledTransport ¶
func NewThrottledTransport(limitPeriod time.Duration, requestCount int, transport http.RoundTripper) http.RoundTripper
NewThrottledTransport wraps transport with a rate limitter
func SelectFormat ¶
SelectFormat returns the format string in the following order of precedence: 1. cliFormat 2. configFormat 3. defaultFormat
Types ¶
type ThrottledTransport ¶
type ThrottledTransport struct {
// contains filtered or unexported fields
}
ThrottledTransport is Rate Limited HTTP Client
Click to show internal directories.
Click to hide internal directories.