Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Env *Env
Discovery *naming.Config
RPCClient *RPCClient
RPCServer *RPCServer
HTTPServer *HTTPServer
Kafka *Kafka
Redis *Redis
Node *Node
Backoff *Backoff
Regions map[string][]string
}
Config config.
var ( // Conf config Conf *Config )
type HTTPServer ¶
type HTTPServer struct {
Network string
Addr string
ReadTimeout xtime.Duration
WriteTimeout xtime.Duration
}
HTTPServer is http server config.
type Node ¶
type Node struct {
DefaultDomain string
HostDomain string
TCPPort int
WSPort int
WSSPort int
HeartbeatMax int
Heartbeat xtime.Duration
RegionWeight float64
}
Node node config.
Click to show internal directories.
Click to hide internal directories.