collected

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

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collected

type Collected struct {
	DeviceName      string //设备名称
	SnapShotLen     int32
	SnapShotLenUint uint32
	Promiscuous     bool //是否开启混杂模式
	Timeout         time.Duration
	Udpbool         bool   //是否开启udp sample and netflow传输
	Host            string //udp 发送客户端及端口 127.0.0.1:8888
	CounterHost     string //udp counter 传输
	EsPath          string // elasticsearch address path
	IsEs            bool   // 是否传送到es
	Index           string // es索引名称
}

func (*Collected) CheckInfo

func (this *Collected) CheckInfo(ppp []byte)

func (*Collected) ListenNetFlowV5

func (this *Collected) ListenNetFlowV5(protocol, port string)

func (*Collected) ListenSFlowSample

func (this *Collected) ListenSFlowSample(protocol, port string)

func (*Collected) ListenSflowAll

func (this *Collected) ListenSflowAll(protocol, port string)

func (*Collected) ListenSflowCounter

func (this *Collected) ListenSflowCounter(protocol, port string)

func (*Collected) SendUdp

func (this *Collected) SendUdp(result string, counter bool)

Jump to

Keyboard shortcuts

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