Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiEndpointNewTournament = "/api/new-tournament" ApiEndpointPlayCompleted = "/api/play-completed" ApiEndpointPairWithStranger = "/api/stranger/pair" ApiEndpointPairedWithStranger = "/api/stranger/paired" ApiEndpointUserTournaments = "/api/user/tournaments" ApiEndpointLeaveTournament = "/api/leave/tournament" ApiEndpointTournamentInfo = "/api/tournament/info" )
Variables ¶
View Source
var ( ErrForbidden = errors.New("forbidden") )
Functions ¶
func NewHttpApiClient ¶
Types ¶
type ErrBadRequest ¶
type ErrBadRequest struct {
// contains filtered or unexported fields
}
type ErrInternalServerError ¶
type ErrInternalServerError struct {
// contains filtered or unexported fields
}
type ErrorResponse ¶
type TournamentCompletedResponse ¶
type TournamentCompletedResponse struct {
Tournament pamodels.Tournament
}
Click to show internal directories.
Click to hide internal directories.