Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServerInfo ¶
func DecrUserCount ¶
func DecrUserCount()
func Delete ¶
func Delete(info *BalanceInfo)
func IncrUserCount ¶
func IncrUserCount()
func SetInterestedServerType ¶
func SetInterestedServerType(servertypes []string)
func SetUserCount ¶
func SetUserCount(count int)
Types ¶
type BalanceInfo ¶
type BalanceInfo struct { Type string `json:"type"` Addr string `json:"addr"` PeerId uint64 `json:"peerid"` PeerType byte `json:"peertype` ZoneName string `json:"zonename"` InfoStr string }
func GetAllServerInfo ¶
func GetAllServerInfo(stype, zonename string) ([]*BalanceInfo, bool)
func GetServerInfo ¶
func GetServerInfo(stype, zonename string) *BalanceInfo
func GetServerInfoByAddr ¶
func GetServerInfoByAddr(addr string) *BalanceInfo
Click to show internal directories.
Click to hide internal directories.