handlers

package
v0.0.0-...-52de14c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedirectURLAuthn      = "redirectURLAuthn"
	RedirectURLAuthz      = "redirectURLAuthz"
	RedirectURLAuthzLogin = "redirectURLAuthzLogin"
)

Variables

View Source
var About = echo.WrapHandler(templ.Handler(templs.PageAbout()))
View Source
var FontAwesome = echo.WrapHandler(
	http.StripPrefix("/static/fontawesome/",
		http.FileServer(http.FS(html.FontAwesomeFS))))
View Source
var Tailwind = echo.WrapHandler(
	http.StripPrefix("/static/tailwindcss/",
		http.FileServer(http.FS(html.TailwindFS))))

Functions

This section is empty.

Types

type Debug

type Debug struct{}

func (*Debug) BuildInfo

func (h *Debug) BuildInfo(c echo.Context) error

type DebugBuildInfo

type DebugBuildInfo struct {
	BuildInfo string
}

type Oauth2

type Oauth2 struct {
	OauthConfig *oauth2.Config
	Queries     cohabdb.Querier
}

func (*Oauth2) GoogleCallbackAuthn

func (o *Oauth2) GoogleCallbackAuthn(c echo.Context) error

func (*Oauth2) GoogleCallbackAuthz

func (o *Oauth2) GoogleCallbackAuthz(c echo.Context) error

func (*Oauth2) GoogleForceApproval

func (o *Oauth2) GoogleForceApproval(c echo.Context) error

func (*Oauth2) GoogleLoginAuthz

func (o *Oauth2) GoogleLoginAuthz(c echo.Context) error

func (*Oauth2) LogUserIn

func (o *Oauth2) LogUserIn(ctx context.Context, cup cohabdb.UpsertUserParams, sessionID int) (cohabdb.Session, error)

type WebUI

type WebUI struct {
	OauthConfig *oauth2.Config
	Queries     cohabdb.Querier
}

func (WebUI) Logout

func (w WebUI) Logout(c echo.Context) error

func (WebUI) PartialTableResults

func (w WebUI) PartialTableResults(c echo.Context) error

func (WebUI) Root

func (w WebUI) Root(c echo.Context) error

Jump to

Keyboard shortcuts

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