extensions

package
v0.3.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCypher

func AddCypher(r *phx.Router)

func AddCypherWithPassword

func AddCypherWithPassword(r *phx.Router, password string)

func AddHasher added in v0.3.5

func AddHasher(r *phx.Router)

func AddRendering

func AddRendering(r *phx.Router, fs embed.FS) *renderer.TemplateRenderer

func AddSession

func AddSession(r *phx.Router, duration time.Duration)

func AddSessionWithStore

func AddSessionWithStore(r *phx.Router, duration time.Duration, store session.SessionStore)

func UseCors

func UseCors(r *phx.Router, opt middleware.CorsOptions)

func UseCorsDefault

func UseCorsDefault(r *phx.Router)

func UseCsrf

func UseCsrf(r *phx.Router, duration time.Duration)

Types

type Authorization

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

func AddAuthorization

func AddAuthorization(r *phx.Router) Authorization

func AddAuthorizationWithRedirect

func AddAuthorizationWithRedirect(r *phx.Router, redirect string) Authorization

func (Authorization) Admin

func (auth Authorization) Admin() phx.Middleware

func (Authorization) Authorize

func (auth Authorization) Authorize() phx.Middleware

func (Authorization) Roles

func (auth Authorization) Roles(roles []core.Role) phx.Middleware

Jump to

Keyboard shortcuts

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