MCPcopy
hub / github.com/40t/go-sniffer / PlugInterface

Interface PlugInterface

core/plug.go:32–37  ·  view source on GitHub ↗

All internal plug-ins must implement this interface ResolvePacket - entry BPFFilter - set BPF, like: mysql(tcp and port 3306) SetFlag - plug-in params Version - plug-in version

Source from the content-addressed store, hash-verified

30// SetFlag - plug-in params
31// Version - plug-in version
32type PlugInterface interface {
33 ResolveStream(net gopacket.Flow, transport gopacket.Flow, r io.Reader)
34 BPFFilter() string
35 SetFlag([]string)
36 Version() string
37}
38
39type ExternalPlug struct {
40 Name string

Callers 3

NewMethod · 0.80
SetOptionMethod · 0.80
SetOptionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected