Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶ added in v0.2.0
type Registry struct {
// contains filtered or unexported fields
}
Registry represents a registry which stores the severs registered on the proxy.
func NewDefaultRegistry ¶ added in v0.2.0
func NewDefaultRegistry() *Registry
NewDefaultRegistry creates a new Registry and returns it.
func (*Registry) RemoveServer ¶ added in v0.2.0
RemoveServer removes a server from the register.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a server connected to the proxy which players can join and play on.
func (*Server) Address ¶
Address returns the IP address the server was registered with. This should also contain the port separated by a colon. E.g. "127.0.0.1:19132".
func (*Server) DecrementPlayerCount ¶
func (s *Server) DecrementPlayerCount()
DecrementPlayerCount decreases the player count of the server.
func (*Server) IncrementPlayerCount ¶
func (s *Server) IncrementPlayerCount()
IncrementPlayerCount increments the player count of the server.
func (*Server) PlayerCount ¶
PlayerCount returns the player count of the server controlled by the IncrementPlayerCount and DecrementPlayerCount functions above.