handlers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBError = errors.New("database error")
View Source
var UnauthorizedError = errors.New("unauthorized")

Functions

func New

func New(db *gorm.DB) *handlers

Types

type GroupAction

type GroupAction struct {
	Name string `json:"name"`
}

type Password

type Password struct {
	Password string `json:"password"`
}

type TokenClaims

type TokenClaims struct {
	Access []docker.Scope `json:"access,omitempty"`
	jwt.StandardClaims
}

type TokenResponse

type TokenResponse struct {
	Token       string    `json:"token"`
	AccessToken string    `json:"access_token"`
	ExpiresIn   int       `json:"expires_in"`
	IssuedAt    time.Time `json:"issued_at"`
}

Jump to

Keyboard shortcuts

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