Documentation ¶
Index ¶
- type ServerInfo
- func (si *ServerInfo) AddAddress(address string)
- func (si ServerInfo) Get() ServerInfo
- func (si *ServerInfo) GetExposePort() int
- func (si *ServerInfo) GetManualAddress() string
- func (si *ServerInfo) GetPort() int
- func (si *ServerInfo) GetPrefAddress() string
- func (si *ServerInfo) SetExposePort(port int)
- func (si *ServerInfo) SetID(id string)
- func (si *ServerInfo) SetManualAddress(addr string)
- func (si *ServerInfo) SetPort(port int)
- func (si *ServerInfo) SetPrefAddress(addr string)
- func (si *ServerInfo) SetPubAddrUpdInterv(interval int)
- func (si *ServerInfo) SetTimeStamp(t time.Time)
- func (si *ServerInfo) Update()
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()
Click to show internal directories.
Click to hide internal directories.