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 // 心跳周期,连接没有在心跳周期内回应,sever 会 close 连接,心跳骤起 = Heartbeat * HeartbeatMax 。 HeartbeatMax int Heartbeat xtime.Duration // 区域权重 。 RegionWeight float64 }
Node node config.
Click to show internal directories.
Click to hide internal directories.