serverinfo

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerInfo

type ServerInfo struct {
	TimeStamp  time.Time
	ID         string
	Port       int
	ExposePort int
	Address    []string
	// contains filtered or unexported fields
}

func (*ServerInfo) AddAddress

func (si *ServerInfo) AddAddress(address string)

func (ServerInfo) Get

func (si ServerInfo) Get() ServerInfo

func (*ServerInfo) GetExposePort

func (si *ServerInfo) GetExposePort() int

func (*ServerInfo) GetManualAddress

func (si *ServerInfo) GetManualAddress() string

func (*ServerInfo) GetPort

func (si *ServerInfo) GetPort() int

func (*ServerInfo) GetPrefAddress

func (si *ServerInfo) GetPrefAddress() string

func (*ServerInfo) SetExposePort

func (si *ServerInfo) SetExposePort(port int)

func (*ServerInfo) SetID

func (si *ServerInfo) SetID(id string)

func (*ServerInfo) SetManualAddress

func (si *ServerInfo) SetManualAddress(addr string)

func (*ServerInfo) SetPort

func (si *ServerInfo) SetPort(port int)

func (*ServerInfo) SetPrefAddress

func (si *ServerInfo) SetPrefAddress(addr string)

func (*ServerInfo) SetPubAddrUpdInterv

func (si *ServerInfo) SetPubAddrUpdInterv(interval int)

func (*ServerInfo) SetTimeStamp

func (si *ServerInfo) SetTimeStamp(t time.Time)

func (*ServerInfo) Update

func (si *ServerInfo) Update()

Jump to

Keyboard shortcuts

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