Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(raw json.RawMessage) (types.FilterPlugin, error)
Types ¶
type AddLabel ¶
type AddLabel struct { // Label key name for adding or updating. It must not be empty. Name string // Type can be one of `DNSTAP`, `DNS`, or `STATIC`. Type AddLabelType // If `Type` is `DNSTAP`, the function name of DNSTAP of the getter function is set to value, and the value of DNSTAP message can be written in the label. // You can see getter names https://pkg.go.dev/github.com/mimuret/dnsutils/getter#DnstapGetterName. // If `Type` is `DNS`, the function name of the DNS message of the getter function is set to value, and the value of the DNS message can be written into the label. // You can see getter names https://pkg.go.dev/github.com/mimuret/dnsutils/getter#DnsMsgGetterName. // If the Type is `STATIC`, the string of the value is written directly into the label. Value string // contains filtered or unexported fields }
type AddLabelType ¶
type AddLabelType string
const ( AddLabelTypeDNSTAP AddLabelType = "DNSTAP" AddLabelTypeDNS AddLabelType = "DNS" AddLabelTypeSTATIC AddLabelType = "STATIC" )
type DelLabel ¶
type DelLabel struct { // Label key name for deleting. It must not be empty. Name string }
Delete Label
type Label ¶
type Label struct { plugin.PluginCommon // Adding and updating labels Add []*AddLabel // Deleting labels Del []*DelLabel }
The label plugin edits labels.
func (*Label) Filter ¶
func (f *Label) Filter(t *types.DnstapMessage) *types.DnstapMessage
Click to show internal directories.
Click to hide internal directories.