tcpplugin

package
v0.0.0-...-0a64cdf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginClass registered
	PluginClass = "tcpplugin"
)

Variables

View Source
var DefaultTimeout = 2 * time.Minute

DefaultTimeout is used for set timeouts for flushing connections

Functions

func Builder

func Builder() builder.BuildPluginFn

Builder returns a builder function

Types

type Action

type Action interface {
	RegisterTCPHooks(*tcpproc.Hooks)
}

Action defines interface action for tls actions

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin implements packetsniff.Plugin interface

func New

func New(id string, processor *tcpproc.Processor, timeout time.Duration, f filter.Filter, stop bool) *Plugin

New instance a new plugin with the tcp processor passed

func (*Plugin) CleanUp

func (p *Plugin) CleanUp()

CleanUp implements packetsniff.Plugin interface

func (*Plugin) GetID

func (p *Plugin) GetID() string

GetID implements plugin.Plugin interface

func (*Plugin) Name

func (p *Plugin) Name() string

Name implements packetsniff.Plugin interface

func (*Plugin) RegisterHooks

func (p *Plugin) RegisterHooks(hooks *packetsniff.Hooks)

RegisterHooks implements packetsniff.Plugin interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL