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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CACHE_SIZE       = 10240
	DefaultPartition = ckdb.TimeFuncHour
)

Variables

This section is empty.

Functions

func GetFlowLogTables

func GetFlowLogTables(engine ckdb.EngineType, cluster, storagePolicy string, l4LogTtl, l7LogTtl, l4PacketTtl int, coldStorages map[string]*ckdb.ColdStorage) []*ckdb.Table

Types

type FlowLogWriter

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

func NewFlowLogWriter

func NewFlowLogWriter(addrs []string, user, password, cluster, storagePolicy, timeZone string, ckWriterCfg config.CKWriterConfig, flowLogTtl flowlogconfig.FlowLogTTL, coldStorages map[string]*ckdb.ColdStorage) (*FlowLogWriter, error)

func (*FlowLogWriter) Close

func (w *FlowLogWriter) Close()

func (*FlowLogWriter) Put

func (w *FlowLogWriter) Put(index int, items ...interface{})

Jump to

Keyboard shortcuts

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