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

Documentation

Index

Constants

View Source
const (
	CACHE_SIZE       = 10240
	QUEUE_BATCH_SIZE = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CkDbWriter

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

func (*CkDbWriter) Close

func (w *CkDbWriter) Close()

func (*CkDbWriter) Put

func (w *CkDbWriter) Put(items ...interface{}) error

type DbWriter

type DbWriter interface {
	Put(items ...interface{}) error
	Close()
}

DbWriter 指标数据写入的接口定义

func NewCkDbWriter

func NewCkDbWriter(addrs []string, user, password, clusterName, storagePolicy, timeZone, ckdbType string, ckWriterCfg config.CKWriterConfig, flowMetricsTtl flowmetricsconfig.FlowMetricsTTL, coldStorages map[string]*ckdb.ColdStorage, ckdbWatcher *config.Watcher) (DbWriter, error)

Jump to

Keyboard shortcuts

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