Documentation ¶
Index ¶
- type HealthPingResponse
- type Manager
- func (m *Manager) Connect(id string) (*TicketRequestResult, error)
- func (m *Manager) GetIndex(class int, id string) int
- func (m *Manager) GetRegisteredClasses() []models.Class
- func (m *Manager) GetRegisteredLobbies(count int) [][]models.LobbyBase
- func (m *Manager) GetRegisteredLobbiesOfClass(index, count, class int) []models.LobbyBase
- func (m *Manager) NewLobby(classIndex int) (*TicketRequestResult, error)
- func (m *Manager) PingHealth(addr string) error
- func (m *Manager) Remove(class int, lobbyId string)
- func (m *Manager) RemoveLobby(class int, i int, lobbyId string)
- func (m *Manager) RequestTicket(class int) (*TicketRequestResult, error)
- func (m *Manager) SearchWithClass(class int) ([]models.LobbyBase, error)
- func (m *Manager) SearchWithParams(min, max, blind int) ([]models.LobbyBase, error)
- type TicketRequestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthPingResponse ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetRegisteredClasses ¶
func (*Manager) GetRegisteredLobbies ¶
func (*Manager) GetRegisteredLobbiesOfClass ¶
func (*Manager) NewLobby ¶
func (m *Manager) NewLobby(classIndex int) (*TicketRequestResult, error)
NewLobby allocates a new GameServer for a new RoundId
func (*Manager) PingHealth ¶
func (*Manager) RequestTicket ¶
func (m *Manager) RequestTicket(class int) (*TicketRequestResult, error)
RequestTicket requests a ticket of a available game server from the manger.
func (*Manager) SearchWithClass ¶
type TicketRequestResult ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.