Documentation ¶
Index ¶
- func GetTargetReader(target string) (io.Reader, error)
- func ParseAbpMatches(reader io.Reader, trie *data.Trie) error
- func ParseHostsMatches(reader io.Reader, trie *data.Trie) error
- func ParseRpzMatches(reader io.Reader, trie *data.Trie) error
- func ProcessCidrData(value json.RawMessage) (interface{}, error)
- func ProcessCronData(value json.RawMessage) (interface{}, error)
- func ProcessExternalData(value json.RawMessage) (interface{}, error)
- func ProcessQNameData(value json.RawMessage) (interface{}, error)
- func ProcessQTypeData(value json.RawMessage) (interface{}, error)
- func ProcessRegexData(value json.RawMessage) (interface{}, error)
- func ProcessTimeData(value json.RawMessage) (interface{}, error)
- type CidrData
- type CronData
- type ExternalData
- type MatchResult
- func HandleMatches(state request.Request, ctx context.Context, alias string, data interface{}) (*MatchResult, error)
- func MatchCidr(state request.Request, ctx context.Context, data CidrData) (*MatchResult, error)
- func MatchCron(state request.Request, ctx context.Context, data CronData) (*MatchResult, error)
- func MatchExternal(state request.Request, ctx context.Context, data ExternalData) (*MatchResult, error)
- func MatchQName(state request.Request, ctx context.Context, data QNameData) (*MatchResult, error)
- func MatchQType(state request.Request, ctx context.Context, data QTypeData) (*MatchResult, error)
- func MatchRegex(state request.Request, ctx context.Context, data RegexData) (*MatchResult, error)
- func MatchTime(state request.Request, ctx context.Context, data TimeData) (*MatchResult, error)
- type QNameData
- type QTypeData
- type RegexData
- type TimeData
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessCidrData ¶
func ProcessCidrData(value json.RawMessage) (interface{}, error)
func ProcessCronData ¶
func ProcessCronData(value json.RawMessage) (interface{}, error)
func ProcessExternalData ¶
func ProcessExternalData(value json.RawMessage) (interface{}, error)
func ProcessQNameData ¶
func ProcessQNameData(value json.RawMessage) (interface{}, error)
func ProcessQTypeData ¶
func ProcessQTypeData(value json.RawMessage) (interface{}, error)
func ProcessRegexData ¶
func ProcessRegexData(value json.RawMessage) (interface{}, error)
func ProcessTimeData ¶
func ProcessTimeData(value json.RawMessage) (interface{}, error)
Types ¶
type CronData ¶
type CronData struct { Entries []struct { Expression string Schedule cron.Schedule } }
type ExternalData ¶
type MatchResult ¶
func HandleMatches ¶
func MatchExternal ¶
func MatchExternal(state request.Request, ctx context.Context, data ExternalData) (*MatchResult, error)
func MatchQName ¶
func MatchQType ¶
func MatchRegex ¶
Click to show internal directories.
Click to hide internal directories.