Versions in this module Expand all Collapse all v0 v0.0.1 Jan 7, 2021 Changes in this version + const PluginClass + func Builder() builder.BuildPluginFn + type Action interface + Register func(*Hooks) + type CbClose func() error + type CbPacketIPv4 func(gopacket.Packet, *layers.IPv4, time.Time) (nfqueue.Verdict, error) + type CbPacketIPv6 func(gopacket.Packet, *layers.IPv6, time.Time) (nfqueue.Verdict, error) + type CbTick func(time.Time, time.Time) error + type Config struct + Actions []Action + type Hooks struct + func NewHooks() *Hooks + func (h *Hooks) OnClose(fn CbClose) + func (h *Hooks) OnPacketIPv4(fn CbPacketIPv4) + func (h *Hooks) OnPacketIPv6(fn CbPacketIPv6) + func (h *Hooks) OnTick(fn CbTick) + type Plugin struct + func New(pname string, cfg Config, l yalogi.Logger) (*Plugin, error) + func (p *Plugin) Class() string + func (p *Plugin) CleanUp() + func (p *Plugin) Layers() []gopacket.LayerType + func (p *Plugin) Name() string + func (p *Plugin) Register(hooks *nfqueue.Hooks)