Documentation ¶
Overview ¶
Package responsewr provides a wrapper for RBLs that changes the responses.
This package is a work in progress and makes no API stability promises.
Index ¶
Constants ¶
View Source
const WrapperClass = "response"
WrapperClass registered.
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(defaultCfg Config) xlistd.BuildWrapperFn
Builder returns a builder function.
Types ¶
type Config ¶
type Config struct { Clean bool Aggregate bool Negate bool Reason string Preffix string TTL int NegativeTTL int UseThreshold bool Score int }
Config options.
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper implements an xlistd.List wrapper for change responses.
Click to show internal directories.
Click to hide internal directories.