model

package
v0.0.0-...-646f264 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthHeaderKey is a header key used for authorization
	AuthHeaderKey = "Authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

Claims struct used as StandardClaims for generating JWT token

type TokenResponse

type TokenResponse struct {
	Token string `json:"token"`
}

TokenResponse is a response provided by the /login endpoint

type User

type User struct {
	Username string
	Password string
}

User is a model of entity from mongo database

Jump to

Keyboard shortcuts

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