Version: v1.9.0 Latest Latest

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0




This section is empty.


View Source
var PrepareClickHouseConnection = prepareConnection

PrepareClickHouseConnection is used for unit testing


func ConnectClickHouse added in v1.8.0

func ConnectClickHouse(url string) (*sql.DB, error)


type ClickHouseExportProcess

type ClickHouseExportProcess struct {
	// contains filtered or unexported fields

func NewClickHouseClient

func NewClickHouseClient(input ClickHouseInput, clusterUUID string) (*ClickHouseExportProcess, error)

func (*ClickHouseExportProcess) CacheRecord added in v1.9.0

func (ch *ClickHouseExportProcess) CacheRecord(record ipfixentities.Record)

func (*ClickHouseExportProcess) GetCommitInterval added in v1.8.0

func (ch *ClickHouseExportProcess) GetCommitInterval() time.Duration

func (*ClickHouseExportProcess) GetDsn added in v1.8.0

func (ch *ClickHouseExportProcess) GetDsn() string

func (*ClickHouseExportProcess) GetDsnMap added in v1.8.0

func (ch *ClickHouseExportProcess) GetDsnMap() map[string]string

func (*ClickHouseExportProcess) SetCommitInterval added in v1.8.0

func (ch *ClickHouseExportProcess) SetCommitInterval(commitInterval time.Duration)

func (*ClickHouseExportProcess) Start

func (ch *ClickHouseExportProcess) Start()

func (*ClickHouseExportProcess) Stop

func (ch *ClickHouseExportProcess) Stop()

func (*ClickHouseExportProcess) UpdateCH added in v1.8.0

func (ch *ClickHouseExportProcess) UpdateCH(dsn string, connect *sql.DB)

type ClickHouseInput

type ClickHouseInput struct {
	Username       string
	Password       string
	Database       string
	DatabaseURL    string
	Debug          bool
	Compress       *bool
	CommitInterval time.Duration

func (*ClickHouseInput) GetDataSourceName added in v1.9.0

func (ci *ClickHouseInput) GetDataSourceName() (string, error)

Jump to

Keyboard shortcuts

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