handler

package
v0.0.0-...-94f38bf Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const PageSize = 10

Variables

This section is empty.

Functions

func InitActivePage

func InitActivePage(ctx echo.Context) map[string]bool

func Render

func Render(ctx echo.Context, cmp templ.Component) error

Types

type AboutHandler

type AboutHandler struct {
	DB *sqlx.DB
}

func (AboutHandler) HandleAboutShow

func (h AboutHandler) HandleAboutShow(c echo.Context) error

type ClaimHandler

type ClaimHandler struct {
	DB          *sqlx.DB
	AllowedList *model.AllowedList
}

func (*ClaimHandler) HandleNewObjectClaim

func (h *ClaimHandler) HandleNewObjectClaim(c echo.Context) error

func (*ClaimHandler) HandleNewObjectClaimAPI

func (h *ClaimHandler) HandleNewObjectClaimAPI(c echo.Context) error

func (ClaimHandler) HandleObjectTypeQuery

func (h ClaimHandler) HandleObjectTypeQuery(c echo.Context) error

func (ClaimHandler) HandlePageShow

func (h ClaimHandler) HandlePageShow(c echo.Context) error

type ClaimRequest

type ClaimRequest struct {
	ObjectType model.ObjectType `json:"query" validate:"required"`
}

type CustomValidator

type CustomValidator struct {
	Validator *validator.Validate
}

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type DuplicatesHandler

type DuplicatesHandler struct {
	DB *sqlx.DB
}

func (*DuplicatesHandler) HandleDuplicatesShow

func (h *DuplicatesHandler) HandleDuplicatesShow(c echo.Context) error

type HistoryHandler

type HistoryHandler struct {
	DB *sqlx.DB
}

func (*HistoryHandler) HandleHistoryShow

func (h *HistoryHandler) HandleHistoryShow(c echo.Context) error

func (*HistoryHandler) HandlePostQuery

func (h *HistoryHandler) HandlePostQuery(c echo.Context) error

type IndexHandler

type IndexHandler struct {
	DB *sqlx.DB
}

func (IndexHandler) HandleIndexShow

func (h IndexHandler) HandleIndexShow(c echo.Context) error

type ObjectClaimAPIError

type ObjectClaimAPIError struct {
	Message string `json:"message"`
}

type ObjectClaimAPIResponse

type ObjectClaimAPIResponse struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

type ObjectTypeQuery

type ObjectTypeQuery struct {
	ObjectType model.ObjectType `json:"query"`
}

type RemoteHandler

type RemoteHandler struct {
	DB *sqlx.DB
}

func (RemoteHandler) HandleRemoteShow

func (h RemoteHandler) HandleRemoteShow(c echo.Context) error

type UsedHandler

type UsedHandler struct {
	DB *sqlx.DB
}

func (UsedHandler) HandleUsedShow

func (h UsedHandler) HandleUsedShow(c echo.Context) error

Jump to

Keyboard shortcuts

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