controllers

package
v0.0.0-...-89d8458 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginController

func NewLoginController(store datastore.Datastore, auth *authentication.JWTAuthentication) *loginController

func NewUserController

func NewUserController(store datastore.Datastore) *userController

func NewUserShortController

func NewUserShortController(store datastore.Datastore) *userShortsController

func ParseUserId

func ParseUserId(r *http.Request, paramName string, allowMe bool, allowAllPermissions models.Permissions) (models.UserId, error)

func WrapAjaxFunc

func WrapAjaxFunc(handler HandlerFunc) http.HandlerFunc

func WrapAjaxHandler

func WrapAjaxHandler(handler Handler) http.HandlerFunc

func WrapApiFunc

func WrapApiFunc(handler HandlerFunc) http.HandlerFunc

func WrapApiHandler

func WrapApiHandler(handler Handler) http.HandlerFunc

func WrapPageFunc

func WrapPageFunc(handler HandlerFunc) http.HandlerFunc

func WrapPageHandler

func WrapPageHandler(handler Handler) http.HandlerFunc

Types

type Handler

type Handler interface {
	ServeHTTP(w http.ResponseWriter, r *http.Request) error
}

type HandlerFunc

type HandlerFunc func(w http.ResponseWriter, r *http.Request) error

func (HandlerFunc) ServeHTTP

func (f HandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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