hostutils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INDIFilter

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

INDIFilter provides logic for incoming/outgoing traffic

func NewINDIFilter

func NewINDIFilter(config *INDIFilterConfig) *INDIFilter

func (*INDIFilter) FilterIncoming

func (f *INDIFilter) FilterIncoming(data [][]byte) [][]byte

FilterIncoming filters out outgoing traffic

func (*INDIFilter) FilterOutgoing

func (f *INDIFilter) FilterOutgoing(data [][]byte) [][]byte

FilterOutgoing filters out outgoing traffic

type INDIFilterConfig

type INDIFilterConfig struct {
	IncomingRules map[string]interface{} // TODO: design format for rules
	OutgoingRules map[string]interface{} // TODO: design format for rules
}

INDIFilterConfig contains config for incoming and outgoinf traffic rules

Jump to

Keyboard shortcuts

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