models

package
v0.0.0-...-d3e267c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT 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 {
	Username string `json:"username"`
	Roles    []Role `json:"roles"`

	jwt.StandardClaims
}

ErrorResponse represents the token model for token response messages

type Role

type Role struct {
	ID    string `json:"id,omitempty"`
	Role  string `json:"role" valid:"required~Field role cannot be empty"`
	Level int    `json:"level" valid:"required~Field level cannot be empty or is missing"`
}

Jump to

Keyboard shortcuts

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