clickhouse_segment

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Dumps all incoming flow messages to a clickhouse database. The schema used is selected according to the preset parameter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clickhouse

type Clickhouse struct {
	segments.BaseSegment

	DSN       string // required
	Preset    string // optional, what schema to use, currently only the option and default is "flowhouse"
	BatchSize int    // optional how many flows to hold in memory between INSERTs, default is 1000
	// contains filtered or unexported fields
}

func (Clickhouse) New

func (segment Clickhouse) New(config map[string]string) segments.Segment

Every Segment must implement a New method, even if there isn't any config it is interested in.

func (*Clickhouse) Run

func (segment *Clickhouse) Run(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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