config

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Host string `yaml:"host" json:"host"`
	Port int    `yaml:"port" json:"port"`
}

func (Addr) Info added in v2.1.9

func (a Addr) Info() string

type ClickHouse

type ClickHouse struct {
	Username      string  `yaml:"username" json:"username"`
	Password      string  `yaml:"password" json:"password"`
	Dbname        string  `yaml:"dbname" json:"dbname"`
	Debug         bool    `yaml:"debug" json:"debug"`
	BlockSize     int     `yaml:"block_size" json:"block_size"`
	Compress      int     `yaml:"compress" json:"compress"`
	Timeout       Timeout `yaml:"timeout" json:"timeout"`
	Cluster       Cluster `yaml:"cluster" json:"cluster"`
	Server        Addr    `yaml:"server" json:"server"`
	ActiveMax     int     `yaml:"active_max" json:"active_max"`
	ConnectionMax int     `yaml:"connection_max" json:"connection_max"`
	LifeTime      int     `yaml:"life_time" json:"life_time"`
}

type Cluster

type Cluster struct {
	Open    string `yaml:"open" json:"open"`
	Servers []Addr `yaml:"servers" json:"servers"`
}

type Mysql

type Mysql struct {
	Host          string `yaml:"host" json:"host"`
	Port          int    `yaml:"port" json:"port"`
	Username      string `yaml:"username" json:"username"`
	Password      string `yaml:"password" json:"password"`
	Dbname        string `yaml:"dbname" json:"dbname"`
	Charset       string `yaml:"charset" json:"charset"`
	ActiveMax     int    `yaml:"active_max" json:"active_max"`
	ConnectionMax int    `yaml:"connection_max" json:"connection_max"`
	LifeTime      int    `yaml:"life_time" json:"life_time"`
	Dev           string `yaml:"dev" json:"dev"`
}

func (*Mysql) ToDSN added in v2.2.1

func (m *Mysql) ToDSN() string

type Timeout

type Timeout struct {
	Read int `yaml:"read" json:"read"`
	Exec int `yaml:"exec" json:"exec"`
	Dial int `yaml:"dial" json:"dial"`
}

Jump to

Keyboard shortcuts

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