config

package
v0.0.0-...-e0071fa Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: BSD-3-Clause Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Listener
	Restriction
	// Redis
	Etcd
}

type Etcd

type Etcd struct {
	// Etcd conf.
	Etcd_addr     []string `json:"-"`
	Etcd_interval uint64
	Etcd_dir      string
}

type Listener

type Listener struct {
	Listen_addr    string `json:"-"` // Client listener addr
	WebSocket_addr string `json:"-"`
	RPC_addr       string `json:"-"`
	Tls            bool   `json:"-"`
	Cert           []byte
	Key            []byte
}

type Restriction

type Restriction struct {
	WirteLoopChanNum int // Should > 1
	ReadPackLoop     int
	MaxCacheMsg      int
	ReadTimeout      int // Heart beat check (seconds)
	WriteTimeout     int
}

Jump to

Keyboard shortcuts

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