session

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package session provides sessions for the Netflow version 9 and IPFIX decoders that need to track templates bound to a session.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *basicSession

Types

type Session

type Session interface {
	Lock()
	Unlock()

	// To keep track of templates
	AddTemplate(uint32, Template)
	GetTemplate(uint32, uint16) (t Template, found bool)
}

type Template

type Template interface {
	ID() uint16
}

Jump to

Keyboard shortcuts

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