dbwriter

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PCAP_DB    = "flow_log"
	PCAP_TABLE = "l7_packet"
)
View Source
const (
	DefaultPcapPartition = ckdb.TimeFuncHour
)

Variables

This section is empty.

Functions

func GenPcapCKTable

func GenPcapCKTable(cluster, storagePolicy string, ttl int, coldStorage *ckdb.ColdStorage) *ckdb.Table

func PcapStoreColumns

func PcapStoreColumns() []*ckdb.Column

func ReleasePcapStore

func ReleasePcapStore(l *PcapStore)

Types

type PcapStore

type PcapStore struct {
	Time        uint32
	StartTime   int64
	EndTime     int64
	FlowID      uint64
	VtapID      uint16
	PacketCount uint32
	PacketBatch []byte
	AclGids     []uint16
}

func AcquirePcapStore

func AcquirePcapStore() *PcapStore

func (*PcapStore) Release

func (p *PcapStore) Release()

func (*PcapStore) String

func (p *PcapStore) String() string

func (*PcapStore) WriteBlock

func (s *PcapStore) WriteBlock(block *ckdb.Block)

type PcapWriter

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

func NewPcapWriter

func NewPcapWriter(config *config.Config) (*PcapWriter, error)

func (*PcapWriter) Write

func (w *PcapWriter) Write(m interface{})

Jump to

Keyboard shortcuts

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