handlers

package
v0.0.0-...-089add1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601 string = "2006-01-02T15:04"
)

Variables

This section is empty.

Functions

func CustomHTTPErrorHandler

func CustomHTTPErrorHandler(err error, c echo.Context)

func SetupRoutes

func SetupRoutes(e *echo.Echo, authHandlers *AuthHandler, bingoHandlers *BingoHandler, tileHandler *TileHandler, apiHandler *ApiHandler)

Types

type ApiHandler

type ApiHandler struct {
	BingoService *services.BingoService
	TileService  *services.TileService
	UserService  *services.UserService
}

type AuthHandler

type AuthHandler struct {
	UserServices AuthService
}

func NewAuthHandler

func NewAuthHandler(us AuthService) *AuthHandler

type AuthService

type AuthService interface {
	CreateUser(params db.CreateLoginParams) error
	CheckUsername(username string) (db.Login, error)
	GetAllUsers() ([]db.Login, error)
	DeleteUser(uid int32) error
	UpdatePassword(uid int32, p string) (db.Login, error)
}

type BingoHandler

type BingoHandler struct {
	BingoService *services.BingoService
	UserService  *services.UserService
	TileService  *services.TileService
}

type TileHandler

type TileHandler struct {
	UserService *services.UserService
	TileService *services.TileService
}

func NewTileHandler

func NewTileHandler(ts *services.TileService, us *services.UserService) *TileHandler

Jump to

Keyboard shortcuts

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