handlers

package
v0.0.0-...-e8ce2a7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(
	oauth2Config oauth2.Config,
	userRepository repositories.UserRepository,
	userTokenRepository repositories.UserTokenRepository,
) AuthHandler

func (*AuthHandler) GetAuthGoogleCallback

func (h *AuthHandler) GetAuthGoogleCallback(c *gin.Context)

func (*AuthHandler) GetOAuthURL

func (h *AuthHandler) GetOAuthURL(c *gin.Context)

type CharacterHandler

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

func NewCharacterHandler

func NewCharacterHandler(characterRepo repositories.CharacterRepository) CharacterHandler

func (*CharacterHandler) CreateCharacter

func (h *CharacterHandler) CreateCharacter(c *gin.Context)

func (*CharacterHandler) GetCharacterByID

func (h *CharacterHandler) GetCharacterByID(c *gin.Context)

type PlayerHandler

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

func NewPlayerHandler

func NewPlayerHandler(
	userRepository repositories.UserRepository,
	characterRepository repositories.CharacterRepository,
) PlayerHandler

func (*PlayerHandler) GetPlayer

func (h *PlayerHandler) GetPlayer(c *gin.Context)

func (*PlayerHandler) GetPlayerCharacters

func (h *PlayerHandler) GetPlayerCharacters(c *gin.Context)

type UserHandler

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

func NewUserHandler

func NewUserHandler(
	oauth2Config oauth2.Config,
	userRepository repositories.UserRepository,
	userTokenRepository repositories.UserTokenRepository,
	characterRepository repositories.CharacterRepository,
) UserHandler

func (*UserHandler) GetUserInfo

func (h *UserHandler) GetUserInfo(c *gin.Context)

func (*UserHandler) UpdateUser

func (h *UserHandler) UpdateUser(c *gin.Context)

Jump to

Keyboard shortcuts

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