internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectIP

func DetectIP(httpCli *http.Client, apiServer string, isV6 bool, isDebug bool) net.IP

Types

type ApiServer

type ApiServer struct {
	URL  string
	Ping int64
}

type ApiServerList

type ApiServerList []*ApiServer
var (
	IpV4ApiList ApiServerList
	IpV6ApiList ApiServerList
)

func (ApiServerList) Len

func (a ApiServerList) Len() int

func (ApiServerList) Less

func (a ApiServerList) Less(i, j int) bool

func (ApiServerList) Swap

func (a ApiServerList) Swap(i, j int)

func (ApiServerList) ToText

func (a ApiServerList) ToText() string

func (ApiServerList) URLs

func (a ApiServerList) URLs() []string

Jump to

Keyboard shortcuts

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