config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Network           string
	LocalSocketPrefix string
	LocalSocketSuffix string
	Unlink            bool
	MinPoolSize       uint64
	MaxPoolSize       uint64
	Pretty            bool
	Statsd            string
	Level             zapcore.Level
	Upstreams         []Upstream
}

func ParseFlags

func ParseFlags() *Config

type Upstream

type Upstream struct {
	UpstreamConfigHost string
	Label              string
	MaxPoolSize        int
	MinPoolSize        int
	Database           int
	ReadTimeout        time.Duration
	WriteTimeout       time.Duration
}

Jump to

Keyboard shortcuts

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