config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Host     string `yaml:"CLICKHOUSE_HOST"`
	Port     int    `yaml:"CLICKHOUSE_TCP_PORT"`
	User     string `yaml:"CLICKHOUSE_USER"`
	Password string `yaml:"CLICKHOUSE_PASSWORD"`
	Database string `yaml:"CLICKHOUSE_DATABASE"`

	RootCAs *x509.CertPool `yaml:"-"`
}

Clickhouse is the configuration for connecting to a clickhouse database.

func (Settings) DSN

func (s Settings) DSN() string

DSN returns the Data Source Name (DSN) for connecting to ClickHouse.

Jump to

Keyboard shortcuts

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