common

package
v0.0.0-...-1b9b0c1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	UserID   string   `json:"userid"`
	Roles    []string `json:"roles"`
	UserName string   `json:"username"`
	jwt.StandardClaims
}

Claims represents the data for a user login

type ErrCookieNotFound

type ErrCookieNotFound struct{}

ErrCookieNotFound is returned when the login cookie is not found.

func (ErrCookieNotFound) Error

func (e ErrCookieNotFound) Error() string

type ErrTokenInvalid

type ErrTokenInvalid struct{}

ErrTokenInvalid is returned when the login token is invalid.

func (ErrTokenInvalid) Error

func (e ErrTokenInvalid) Error() string

type ErrTokenSignatureInvalid

type ErrTokenSignatureInvalid struct{}

ErrTokenSignatureInvalid is returned when the login token signature is invalid.

func (ErrTokenSignatureInvalid) Error

func (e ErrTokenSignatureInvalid) Error() string
type Link struct {
	URL  string `json:"url"`
	Text string `json:"text"`
}

Link represents a link in the navigation bar

Jump to

Keyboard shortcuts

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