Documentation
¶
Index ¶
- Constants
- type Config
- type KeyFunc
- type Option
- func WithHTTPClient(client *http.Client) Option
- func WithRateLimitBurst(burst int) Option
- func WithRateLimitWaitMax(maxWait time.Duration) Option
- func WithRefreshInterval(interval time.Duration) Option
- func WithRefreshTimeout(timeout time.Duration) Option
- func WithValidationSkipAll(skip bool) Option
Constants ¶
View Source
const ( DefaultRateLimitBurst = 5 DefaultRefreshTimeout = 10 * time.Second DefaultRefreshInterval = 60 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyFunc ¶
type KeyFunc struct {
// contains filtered or unexported fields
}
func (*KeyFunc) KeyfuncCtx ¶ added in v1.3.5
func (*KeyFunc) VerificationKeySet ¶ added in v1.3.5
type Option ¶
type Option func(*Config)
func WithHTTPClient ¶
func WithRateLimitBurst ¶
func WithRateLimitWaitMax ¶
func WithRefreshInterval ¶
func WithRefreshTimeout ¶
func WithValidationSkipAll ¶
Click to show internal directories.
Click to hide internal directories.