dbwriter

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CACHE_SIZE       = 10240
	DefaultPartition = ckdb.TimeFuncHour
)
View Source
const (
	TRACE_TREE_TABLE = "trace_tree"
	BUFFER_SIZE      = 1024
)
View Source
const (
	SPAN_WITH_TRACE_ID_TABLE = "span_with_trace_id"
)

Variables

This section is empty.

Functions

func GenSpanWithTraceIDCKTable

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

func GenTraceTreeCKTable

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

func GetFlowLogTables

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

func SpanWithTraceIDColumns

func SpanWithTraceIDColumns() []*ckdb.Column

Types

type FlowLogWriter

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

func NewFlowLogWriter

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

func (*FlowLogWriter) Close

func (w *FlowLogWriter) Close()

func (*FlowLogWriter) Put

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

type SpanWithTraceID

type SpanWithTraceID logdata.L7FlowLog

func (*SpanWithTraceID) Encode

func (t *SpanWithTraceID) Encode()

func (*SpanWithTraceID) OrgID

func (t *SpanWithTraceID) OrgID() uint16

func (*SpanWithTraceID) Release

func (t *SpanWithTraceID) Release()

func (*SpanWithTraceID) WriteBlock

func (t *SpanWithTraceID) WriteBlock(block *ckdb.Block)

type SpanWriter

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

func NewSpanWriter

func NewSpanWriter(config *config.Config) (*SpanWriter, error)

func (*SpanWriter) Close

func (s *SpanWriter) Close()

func (*SpanWriter) Put

func (s *SpanWriter) Put(items []interface{})

func (*SpanWriter) Start

func (s *SpanWriter) Start()

type TraceTreeWriter

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

func NewTraceTreeWriter

func NewTraceTreeWriter(config *config.Config, traceTreeQueue queue.QueueReader) (*TraceTreeWriter, error)

func (*TraceTreeWriter) Close

func (s *TraceTreeWriter) Close()

func (*TraceTreeWriter) Put

func (s *TraceTreeWriter) Put(items []interface{})

func (*TraceTreeWriter) Start

func (s *TraceTreeWriter) Start()

Jump to

Keyboard shortcuts

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