controller

package
v0.0.0-...-e246b8e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorSender

func ErrorSender(ctx *gin.Context, err error)

func GenericPost

func GenericPost(ctx *gin.Context, obj interface{}, f interface{})

Generic POST function. <obj> of type *T - pointer to object to be saved; <f> of type func(T) error - standard service save function

func ResponseOK

func ResponseOK(ctx *gin.Context)

Types

type GameListController

type GameListController interface {
	GetAllGames(ctx *gin.Context)
	GetAllGamesTyped(ctx *gin.Context)
	GetMyGameList(ctx *gin.Context)
	SearchGames(ctx *gin.Context)
	GameDetails(ctx *gin.Context)

	AcquireJWTPair(ctx *gin.Context)
	RefreshJWTPair(ctx *gin.Context)
	RevokeRefreshToken(ctx *gin.Context)
	DeleteAllRefreshTokens(ctx *gin.Context)
	Authorized(ctx *gin.Context)

	// Will be replaced with gRPC calls
	PostGame(ctx *gin.Context)

	PostListType(ctx *gin.Context)
	GetAllListTypes(ctx *gin.Context)
	ListGame(ctx *gin.Context)

	PostGenre(ctx *gin.Context)
	GetAllGenres(ctx *gin.Context)

	PostPlatform(ctx *gin.Context)
	GetAllPlatforms(ctx *gin.Context)

	PostProfile(ctx *gin.Context)
	GetAllProfiles(ctx *gin.Context)

	PostSocialType(ctx *gin.Context)
	GetAllSocialtypes(ctx *gin.Context)
}

func NewGameListController

func NewGameListController(gamelistService service.GameListService, jwtService service.JWTService) GameListController

Jump to

Keyboard shortcuts

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