serverlist

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerList

type ServerList struct {
	ServerList []serverinfo.ServerInfo
	// contains filtered or unexported fields
}

func (*ServerList) Add

func (sl *ServerList) Add(server serverinfo.ServerInfo)

func (*ServerList) AddList

func (sl *ServerList) AddList(serverList []serverinfo.ServerInfo)

func (*ServerList) Clean

func (sl *ServerList) Clean()

func (*ServerList) Delete

func (sl *ServerList) Delete(id string)

func (*ServerList) Get

func (sl *ServerList) Get() []serverinfo.ServerInfo

func (*ServerList) GetPrefAddress

func (sl *ServerList) GetPrefAddress(server serverinfo.ServerInfo) string

func (*ServerList) GetWithID

func (sl *ServerList) GetWithID(id string) (serverinfo.ServerInfo, error)

func (*ServerList) SetMaxAge

func (sl *ServerList) SetMaxAge(maxage float64)

func (*ServerList) SetPrefAddress

func (sl *ServerList) SetPrefAddress(server serverinfo.ServerInfo, addr string)

Jump to

Keyboard shortcuts

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