Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Debug bool Env *Env Discovery *naming.Config TCP *TCP Websocket *Websocket Protocol *Protocol Bucket *Bucket RPCClient *RPCClient RPCServer *RPCServer Whitelist *Whitelist }
Config is comet config.
var ( // Conf config Conf *Config )
type Env ¶
type Env struct { Region string Zone string DeployEnv string Host string Weight int64 Offline bool Addrs []string }
Env is env config.
type Protocol ¶
type Protocol struct { Timer int TimerSize int SvrProto int CliProto int HandshakeTimeout xtime.Duration }
Protocol is protocol config.
type RPCServer ¶
type RPCServer struct { Network string Addr string Timeout xtime.Duration IdleTimeout xtime.Duration MaxLifeTime xtime.Duration ForceCloseWait xtime.Duration KeepAliveInterval xtime.Duration KeepAliveTimeout xtime.Duration }
RPCServer is RPC server config.
type TCP ¶
type TCP struct { Bind []string Sndbuf int Rcvbuf int KeepAlive bool Reader int ReadBuf int ReadBufSize int Writer int WriteBuf int WriteBufSize int }
TCP is tcp config.
Click to show internal directories.
Click to hide internal directories.