conf

package
v0.0.0-...-b4d2924 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Name       string `cfg:"name; tips; ; the default logger name"`
	Path       string `cfg:"path; logs/tips; ; the default log path"`
	Level      string `cfg:"level; info; ; log level(debug, info, warn, error, panic, fatal)"`
	Compress   bool   `cfg:"compress; false; boolean; true for enabling log compress"`
	TimeRotate string `cfg:"time-rotate; 0 0 0 * * *; ; log time rotate pattern(s m h D M W)"`
}

type Server

type Server struct {
	Tikv   Tikv   `cfg:"tikv"`
	Listen string `cfg:"listen; 0.0.0.0:7369; netaddr; address to listen"`
	Key    string `cfg:"key;;; key file name"`
	Cert   string `cfg:"Cert;;; tls session ticket file name. ticket use: openssl rand 32"`
}

type Status

type Status struct {
	Listen string `cfg:"listen;0.0.0.0:7345;nonempty; listen address of http server"`
}

TODO

type Tikv

type Tikv struct {
	PdAddrs string `cfg:"pd-addrs;required; ;pd address in tidb"`
}

type TikvLogger

type TikvLogger struct {
	Path       string `cfg:"path; logs/tikv;nonempty ; the default log path"`
	Level      string `cfg:"level; info; ; log level(debug, info, warn, error, panic, fatal)"`
	Compress   bool   `cfg:"compress; false; boolean; true for enabling log compress"`
	TimeRotate string `cfg:"time-rotate; 0 0 0 * * *; ; log time rotate pattern(s m h D M W)"`
}

type Tips

type Tips struct {
	Server      Server     `cfg:"server"`
	Status      Status     `cfg:"status"`
	TikvLog     TikvLogger `cfg:"tikv-logger"`
	Logger      Logger     `cfg:"logger"`
	PIDFileName string     `cfg:"pid-filename; tips.pid; ; the file name to record connd PID"`
}

Jump to

Keyboard shortcuts

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