clickhouse

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package clickhouse performs output operations for the extension

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN   string `json:"dsn"`
	RunID string `json:"run_id"`

	PushInterval  types.NullDuration `json:"push_interval"`
	LogLevel      logrus.Level       `json:"log_level"`
	ClientOptions *clickhouse.Options
}

Config is the config for the ClickHouse output extension.

func NewConfig

func NewConfig(params output.Params) (*Config, error)

NewConfig creates a new Config instance from the provided output.Params.

type Output

type Output struct {
	output.SampleBuffer
	// contains filtered or unexported fields
}

Output implements the output.Output interface.

func New

func New(p output.Params) (*Output, error)

New creates an instance of the emitter.

func (*Output) Description

func (o *Output) Description() string

Description returns a human-readable description of the output that will be shown in `k6 run`.

func (*Output) Start

func (o *Output) Start() error

Start performs initialization tasks prior to the engine using the output.

func (*Output) Stop

func (o *Output) Stop() error

Stop flushes all remaining metrics and finalizes the test run.

Jump to

Keyboard shortcuts

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