conf

package
v0.0.0-...-b679930 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: MIT 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 {
	Listen  string `cfg:"listen; :8804; netaddr; The address the server to listen"`
	MaxConn int    `cfg:"max-connection; 10000; numeric; Max number of concurrent connections"`
	Redis   struct {
		Cluster []string      `cfg:"cluster; required; dialstring; The addresses of redis cluster"`
		Timeout time.Duration `cfg:"timeout; 10s"`
	}
}

Jump to

Keyboard shortcuts

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