conf

package
v0.0.0-...-53ef1e8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 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   [2]Redis `cfg:"redis;;;redis cluster"`
}

type Redis

type Redis struct {
	Cluster []string      `cfg:"cluster; ['127.0.0.1:6379'];; 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