dbwriter

package
v0.0.0-...-9634a1a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CACHE_SIZE       = 10240
	DefaultDayForTTL = 3
	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 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