config

package
v0.0.0-...-14e0149 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 1 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 {
	Addr           string `json:"addr" toml:"addr"`
	LogLevel       string `json:"log_level" toml:"log_level"`
	SkipAuth       bool   `json:"skip_auth" toml:"skip_auth"`
	StatusAddr     string `json:"status_addr" toml:"status_addr"`
	Socket         string `json:"socket" toml:"socket"`
	ReportStatus   bool   `json:"report_status" toml:"report_status"`
	StorePath      string `json:"store_path" toml:"store_path"`
	Store          string `json:"store" toml:"store"`
	SlowThreshold  int    `json:"slow_threshold" toml:"slow_threshold"`
	QueryLogMaxlen int    `json:"query_log_max_len" toml:"query_log_max_len"`
	TCPKeepAlive   bool   `json:"tcp_keep_alive" toml:"tcp_keep_alive"`
}

Config contains configuration options.

func GetGlobalConfig

func GetGlobalConfig() *Config

GetGlobalConfig returns the global configuration for this server. It should store configuration from command line and configuration file. Other parts of the system can read the global configuration use this function.

Jump to

Keyboard shortcuts

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