handlers

package
v0.0.0-...-1aa1bea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticket

type Ticket struct {
	// contains filtered or unexported fields
}

func NewTicket

func NewTicket(logger *zap.SugaredLogger, manager *lobby.Manager) *Ticket

func (*Ticket) ClassInfo

func (h *Ticket) ClassInfo(rw http.ResponseWriter, r *http.Request)

ClassInfo

func (*Ticket) GetTicketWithID

func (h *Ticket) GetTicketWithID(rw http.ResponseWriter, r *http.Request)

GetTicketWithID requests a ticket with lobby id

func (*Ticket) GetTicketWithParams

func (h *Ticket) GetTicketWithParams(rw http.ResponseWriter, r *http.Request)

GetTicketWithParams requests a ticket with lobby params

func (*Ticket) PokerInfo

func (h *Ticket) PokerInfo(rw http.ResponseWriter, r *http.Request)

PokerInfo returns 15 combined possible lobbies of all classes and the registered poker classes

type TicketResponse

type TicketResponse struct {
	Address string `json:"address"`
	Token   string `json:"token"`
}

TicketResponse is the successful response of a ticket request

Jump to

Keyboard shortcuts

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