handler

package
v0.0.0-...-6a80895 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomHTTPErrorHandler

func CustomHTTPErrorHandler(err error, c echo.Context)

func SetupRoutes

func SetupRoutes(e *echo.Echo, hh *HomeHandler, fh *FishingHandler, ch *CodingHandler, mh *MiscHandler, ah *AdminHandler, conh *ContentHandler)

Types

type AdminHandler

type AdminHandler struct {
	AdminServices AdminService
}

func NewAdminHandler

func NewAdminHandler(as AdminService) *AdminHandler

type AdminService

type AdminService interface {
	Login(username string) (service.User, error)
}

type CodingHandler

type CodingHandler struct {
}

func NewCodingHandler

func NewCodingHandler() *CodingHandler

type ContentHandler

type ContentHandler struct {
}

func NewContentHandler

func NewContentHandler() *ContentHandler

type FishingHandler

type FishingHandler struct {
}

func NewFishingHandler

func NewFishingHandler() *FishingHandler

type HomeHandler

type HomeHandler struct {
}

func NewHomeHandler

func NewHomeHandler() *HomeHandler

type MiscHandler

type MiscHandler struct {
}

func NewMiscHandler

func NewMiscHandler() *MiscHandler

Jump to

Keyboard shortcuts

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