datarecord

package
v0.0.0-...-456f7df Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DATAFRAME_SYNC_POOL *sync.Pool
View Source
var RecordTypeList = []string{"nat", "security", "queuedrop", "nimbleflow", "urlstats", "art", "conn", "rtp", "flow", "wireless", "viptela", "viptelabfd", "zbfw"}

Functions

func Free

func Free(d *DataFrame)

func IsETARecord

func IsETARecord(d map[string]interface{}) bool

func IsFW

func IsFW(d map[string]interface{}) bool

func IsNATRecord

func IsNATRecord(d map[string]interface{}) bool

func IsOptionTemplate

func IsOptionTemplate(d map[string]interface{}) bool

func IsSampleRecord

func IsSampleRecord(d map[string]interface{}) bool

Types

type DataFrame

type DataFrame struct {
	AgentID    string
	DomainID   uint32
	ExportTime uint32
	SetID      uint16
	Type       string
	Record     []map[string]interface{} //use hashmap could be easily add new record.
}

func NewDataFrame

func NewDataFrame() *DataFrame

func (*DataFrame) Print

func (d *DataFrame) Print(prefix string)

func (*DataFrame) RecordList

func (d *DataFrame) RecordList() []map[string]interface{}

RecordList : generate record list for bulk output

func (*DataFrame) ToJSON

func (d *DataFrame) ToJSON() (string, error)

func (*DataFrame) TypeAssertion

func (d *DataFrame) TypeAssertion()

type FieldValue

type FieldValue struct {
	//Key   iedb.ElementKey
	//Name  string
	Type  string
	Value interface{}
}

FieldValue : define a common struct 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Set ID = Template ID | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 1 - Field Value 1 | Record 1 - Field Value 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Jump to

Keyboard shortcuts

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