Documentation ¶
Index ¶
- Variables
- type Server
- func (gs *Server) ClearDiscoveryStatus(status ds.DiscoveryStatus)
- func (gs *Server) HasAnyDiscoveryStatus(status ds.DiscoveryStatus) bool
- func (gs *Server) HasDiscoveryStatus(status ds.DiscoveryStatus) bool
- func (gs *Server) HasNoDiscoveryStatus(status ds.DiscoveryStatus) bool
- func (gs *Server) Refresh(updatedAt time.Time)
- func (gs Server) String() string
- func (gs *Server) UpdateDetails(det details.Details, updatedAt time.Time)
- func (gs *Server) UpdateDiscoveryStatus(status ds.DiscoveryStatus)
- func (gs *Server) UpdateInfo(info details.Info, updatedAt time.Time)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidQueryPort = errors.New("invalid port number")
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Addr addr.Addr QueryPort int DiscoveryStatus ds.DiscoveryStatus Info details.Info Details details.Details RefreshedAt time.Time Version int // lamport clock counter }
var Blank Server // nolint: gochecknoglobals
func (*Server) ClearDiscoveryStatus ¶
func (gs *Server) ClearDiscoveryStatus(status ds.DiscoveryStatus)
func (*Server) HasAnyDiscoveryStatus ¶
func (gs *Server) HasAnyDiscoveryStatus(status ds.DiscoveryStatus) bool
func (*Server) HasDiscoveryStatus ¶
func (gs *Server) HasDiscoveryStatus(status ds.DiscoveryStatus) bool
func (*Server) HasNoDiscoveryStatus ¶
func (gs *Server) HasNoDiscoveryStatus(status ds.DiscoveryStatus) bool
func (*Server) UpdateDetails ¶
func (*Server) UpdateDiscoveryStatus ¶
func (gs *Server) UpdateDiscoveryStatus(status ds.DiscoveryStatus)
Click to show internal directories.
Click to hide internal directories.