server

package
v0.0.0-...-0f031a4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBanned            = errors.New("account banned")
	ErrLocked            = errors.New("account locked")
	ErrCookieMissing     = errors.New("missing access token cookie")
	ErrCSRFHeaderMissing = errors.New("missing CSRF token header")
	ErrCSRFInvalid       = errors.New("invalid CSRF token")
	ErrTokenInvalid      = errors.New("token invalid")
	ErrTokenMismatch     = errors.New("token mismatch")
	ErrTokenRevoked      = errors.New("token is revoked")
	ErrTokenExpired      = errors.New("token is expired")
)

Functions

func New

func New() *server.Server

func NewTestServer

func NewTestServer(userSvc handlers.UserService, patSvc handlers.PersonalAccessTokenService, handler ...handlers.Handler) *server.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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