notify

package
v0.0.0-...-2a45537 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Layer3String = "l3"
View Source
const Layer4String = "l4"

Variables

This section is empty.

Functions

func PostFlows

func PostFlows(url string, timeout int, flows Flows) (err error)

func PrintNotifier

func PrintNotifier(ctx context.Context, duration int64)

func WebhookNotifier

func WebhookNotifier(ctx context.Context, duration int64, nodeId string, nodeOamAddr string, url string, timeout int)

Types

type Flow

type Flow struct {
	Layer            string
	SrcAddr          string
	DstAddr          string
	SrcPort          uint16
	DstPort          uint16
	Protocol         string
	InboundBytes     int64
	InboundPackets   int64
	InboundDuration  int64
	OutboundBytes    int64
	OutboundPackets  int64
	OutboundDuration int64
}

type Flows

type Flows struct {
	RouterId string
	OamAddr  string
	Start    int64
	End      int64
	FLowsMap map[string][]*Flow
}

Jump to

Keyboard shortcuts

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