scanstream

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ActionClass registered
	ActionClass = "tcp.scanstream"
)

Variables

This section is empty.

Functions

func Builder

func Builder() builder.BuildActionFn

Builder returns a builder function

Types

type Action

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

Action register hooks to check sni of clienthellos

func New

func New(id string, plugins []string, cfg Config, s hyperscan.StreamScanner, l yalogi.Logger) *Action

New creates a new action

func (*Action) GetID

func (a *Action) GetID() string

GetID returns action id

func (*Action) Plugins

func (a *Action) Plugins() []string

Plugins implements Action interface

func (*Action) RegisterTCPHooks

func (a *Action) RegisterTCPHooks(hooks *tcpproc.Hooks)

RegisterTCPHooks adds hooks to tcpproc

type Config

type Config struct {
	Policy action.RuleSet
}

Config sets configuration

Jump to

Keyboard shortcuts

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