Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreDocument ¶
type StoreDocument struct { Features Features `json:"features"` Throttles map[string]ThrottleConfig `json:"throttles"` }
type ThrottleConfig ¶
type ThrottleConfig struct { // Whitelist is a list of hash results that will always be allowed through the throttle. Whitelist []uint `json:"whitelist,omitempty"` // Probability of a hash result making it through the throttle. Probability float64 `json:"probability,omitempty"` // When true will force the rejection for all the requests going through the throttle ForceRejectAll bool `json:"forceRejectAll,omitempty"` }
Click to show internal directories.
Click to hide internal directories.