Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCIDRMatcherHookFunc ¶
func DecodeCIDRMatcherHookFunc() mapstructure.DecodeHookFunc
func DecodeErrorTypeMatcherHookFunc ¶
func DecodeErrorTypeMatcherHookFunc() mapstructure.DecodeHookFunc
Types ¶
type CIDRMatcher ¶
type CIDRMatcher struct {
// contains filtered or unexported fields
}
func NewCIDRMatcher ¶
func NewCIDRMatcher(cidrs []string) (*CIDRMatcher, error)
func (*CIDRMatcher) Match ¶
func (c *CIDRMatcher) Match(ips ...string) bool
type ErrorConditionMatcher ¶
type ErrorConditionMatcher struct { Error *ErrorMatcher `mapstructure:"error"` CIDR *CIDRMatcher `mapstructure:"request_cidr"` Headers *HeaderMatcher `mapstructure:"request_headers"` }
type ErrorDescriptor ¶
func (ErrorDescriptor) Matches ¶
func (ed ErrorDescriptor) Matches(err error) bool
type ErrorMatcher ¶
type ErrorMatcher []ErrorDescriptor
func (ErrorMatcher) Match ¶
func (etm ErrorMatcher) Match(err error) bool
type HeaderMatcher ¶
Click to show internal directories.
Click to hide internal directories.