controller

package
v0.0.0-...-693af1c Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	Auth *webauthn.WebAuthn
	// contains filtered or unexported fields
}

func NewAuthController

func NewAuthController(e *echo.Group, db *gorm.DB, ably *ably.Realtime) *AuthController

func (*AuthController) GetAblyToken

func (ac *AuthController) GetAblyToken(c echo.Context) error

func (*AuthController) GetMe

func (ac *AuthController) GetMe(c echo.Context) error

func (*AuthController) PostCompleteLogin

func (ac *AuthController) PostCompleteLogin(c echo.Context) error

func (*AuthController) PostCompleteRegister

func (ac *AuthController) PostCompleteRegister(c echo.Context) error

PostCompleteRegister completes the registration and creates the user

func (*AuthController) PostStartLogin

func (ac *AuthController) PostStartLogin(c echo.Context) error

func (*AuthController) PostStartRegister

func (ac *AuthController) PostStartRegister(c echo.Context) error

PostStartRegister initiates the WebAuthn request on the client

type ChatController

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

func NewChatController

func NewChatController(e *echo.Group, db *gorm.DB, client *ably.Realtime) *ChatController

func (*ChatController) GetChatHistory

func (cc *ChatController) GetChatHistory(c echo.Context) error

func (*ChatController) PostChatMessage

func (cc *ChatController) PostChatMessage(c echo.Context) error

type GameController

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

func NewGameController

func NewGameController(e *echo.Group, db *gorm.DB, ably *ably.Realtime) *GameController

func (*GameController) EndTurn

func (gc *GameController) EndTurn(c echo.Context) error

func (*GameController) GetBoards

func (gc *GameController) GetBoards(c echo.Context) error

func (*GameController) GetDeck

func (gc *GameController) GetDeck(c echo.Context) error

func (*GameController) PatchBoard

func (gc *GameController) PatchBoard(c echo.Context) error

type LobbyController

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

func NewLobbyController

func NewLobbyController(e *echo.Group, db *gorm.DB, ably *ably.Realtime) *LobbyController

func (*LobbyController) DeleteLobby

func (lc *LobbyController) DeleteLobby(c echo.Context) error

func (*LobbyController) DeleteMember

func (lc *LobbyController) DeleteMember(c echo.Context) error

func (*LobbyController) GetGameTypes

func (lc *LobbyController) GetGameTypes(c echo.Context) error

func (*LobbyController) GetJoinedLobbies

func (lc *LobbyController) GetJoinedLobbies(c echo.Context) error

func (*LobbyController) GetLobbies

func (lc *LobbyController) GetLobbies(c echo.Context) error

func (*LobbyController) GetLobby

func (lc *LobbyController) GetLobby(c echo.Context) error

func (*LobbyController) GetLobbyThumbnail

func (lc *LobbyController) GetLobbyThumbnail(c echo.Context) error

func (*LobbyController) GetMembers

func (lc *LobbyController) GetMembers(c echo.Context) error

func (*LobbyController) PatchLobby

func (lc *LobbyController) PatchLobby(c echo.Context) error

func (*LobbyController) PatchMember

func (lc *LobbyController) PatchMember(c echo.Context) error

func (*LobbyController) PostGameType

func (lc *LobbyController) PostGameType(c echo.Context) error

func (*LobbyController) PostLobby

func (lc *LobbyController) PostLobby(c echo.Context) error

func (*LobbyController) PutMember

func (lc *LobbyController) PutMember(c echo.Context) error

Jump to

Keyboard shortcuts

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