server

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TokenKey is authenticated token key
	TokenKey = "authenticated-token"
)

Variables

This section is empty.

Functions

func NewAuthMiddleware

func NewAuthMiddleware(ur repository.User) middleware.Auth

NewAuthMiddleware is create middleware for auth

func NewStateHandler

func NewStateHandler() handler.State

NewStateHandler is create action handler for state

func NewUserHandler added in v1.6.3

func NewUserHandler(ur repository.User) handler.User

NewUserHandler is create action handler for user

func ValidationErrors

func ValidationErrors(ve validator.ValidationErrors, o any) map[string]string

ValidationErrors is create validation error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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