clickhouse

package
v0.0.0-...-b834f79 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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *sqlx.DB

Functions

func Connect

func Connect(cfg ClickHouseConfig) (*sqlx.DB, error)

Types

type ClickHouseConfig

type ClickHouseConfig struct {
	Database            string `default:"flow_tag" yaml:"database"`
	Host                string `default:"clickhouse" yaml:"host"`
	Port                uint32 `default:"9000" yaml:"port"`
	UserName            string `default:"default" yaml:"user-name"`
	UserPassword        string `default:"" yaml:"user-password"`
	TimeOut             uint32 `default:"30" yaml:"timeout"`
	EndpointTcpPortName string `default:"tcp-port" yaml:"endpoint-tcp-port-name"`
}

type Clusters

type Clusters struct {
	HostAddress string `db:"host_address"`
	Port        uint16 `db:"port"`
}

Jump to

Keyboard shortcuts

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