handler

package
v0.0.0-...-fcbf550 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UploadFailHTML = "<div>Failed</div>"

Functions

func DiscordOauth2Client

func DiscordOauth2Client() *oauth2.Config

func ExpireCookie

func ExpireCookie(c echo.Context, name string) error

func FileToCSV

func FileToCSV(c echo.Context, formName string, fileName string) ([][]string, error)

func TemplRender

func TemplRender(c echo.Context, component templ.Component) error

Helper to wrap calling a component's Render method.

Types

type Handler

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

func NewHandler

func NewHandler(db *sqlx.DB) *Handler

func (*Handler) ChuckNorris

func (h *Handler) ChuckNorris(c echo.Context) error

func (*Handler) Dashboard

func (h *Handler) Dashboard(c echo.Context) error

func (*Handler) Index

func (h *Handler) Index(c echo.Context) error

func (*Handler) Login

func (h *Handler) Login(c echo.Context) error

func (*Handler) LoginRedirect

func (h *Handler) LoginRedirect(c echo.Context) error

func (*Handler) Logout

func (h *Handler) Logout(c echo.Context) error

func (*Handler) Refresh

func (h *Handler) Refresh(c echo.Context) error

func (*Handler) UploadItemsFile

func (h *Handler) UploadItemsFile(c echo.Context) error

func (*Handler) UploadRolesFile

func (h *Handler) UploadRolesFile(c echo.Context) error

Jump to

Keyboard shortcuts

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