app

package
v0.0.0-...-026e0f2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const UserKey ctxKeyUser = 0

Variables

This section is empty.

Functions

func GetUser

func GetUser(ctx context.Context) (store.User, error)

func New

func New(devMode bool) http.Handler

Types

type Token

type Token struct {
	Username    string   `json:"username"`
	Permissions []string `json:"permissions"`
	Activated   bool     `json:"activated"`
}

Jump to

Keyboard shortcuts

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