prizarena

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: GPL-3.0 Imports: 13 Imported by: 2

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 (
	ErrUnauthorized = errors.New("unauthorized")
	ErrForbidden    = errors.New("forbidden")
)

Functions

func NewFacade

func NewFacade(apiClient prizarena_interfaces.ApiClient) facade

func NewHttpApiClient

func NewHttpApiClient(httpClient *http.Client, server, gameID, token string) httpApiClient

Types

type ErrBadRequest

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

func (ErrBadRequest) Error

func (err ErrBadRequest) Error() string

type ErrInternalServerError

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

func (ErrInternalServerError) Error

func (err ErrInternalServerError) Error() string

type ErrorResponse

type ErrorResponse struct {
	Code    string
	Message string
}

type TournamentCompletedResponse

type TournamentCompletedResponse struct {
	Tournament pamodels.Tournament
}

Jump to

Keyboard shortcuts

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