balance

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServerInfo

func AddServerInfo(stype, addr, zonename string, peerid uint64)

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)

func StartGet

func StartGet()

func StartSet

func StartSet()

func StopGet

func StopGet()

func StopSet

func StopSet()

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

Jump to

Keyboard shortcuts

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