website

package
v0.0.0-...-7aa1237 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCallback

func AuthCallback(c echo.Context) error

AuthCallback handles callback from provider

func AuthLogout

func AuthLogout(c echo.Context) error

AuthLogout will close and clear the login session

func HandleGroupWithConfigs

func HandleGroupWithConfigs(e *echo.Echo, path string, embedFS fs.FS, conf *config.Config)

func RegisterRoutes

func RegisterRoutes(e *echo.Echo, path string, embedFS fs.FS)

Types

type State

type State struct {
	IsLoggedIn bool
}

func BuildState

func BuildState(c echo.Context) State

type TemplateRenderer

type TemplateRenderer struct {
	Templates *template.Template
}

TemplateRenderer is a custom html/template renderer for Echo framework

func NewRenderer

func NewRenderer(embedFS fs.FS) *TemplateRenderer

func (*TemplateRenderer) Render

func (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render renders a template document

Jump to

Keyboard shortcuts

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