server

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServers

func GetServers(configIp string) map[string]*config.ServerInfo

GetServersLen 获取服务器数组

func GetServersLen

func GetServersLen(configIp string) int

GetServersLen 获取服务器数组长度

func IsConnectDirectly

func IsConnectDirectly(configIp string) bool

IsConnectDirectly is connect by ip directly false : yes true : no

func SetDownNode

func SetDownNode(configService string, serverHost string)

SetDownNode 设置失效节点

func SetNextTryConnTime

func SetNextTryConnTime(configIp string, nextPeriod int64)

SetNextTryConnTime if this connect is fail will set this time

func SetServers

func SetServers(configIp string, serverMap map[string]*config.ServerInfo)

Types

type Info

type Info struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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