Discover Packages
github.com/ricmoreira/api_gateway_admin
models
package
Version:
v0.0.0-...-d3e267c
Opens a new window with list of versions in this module.
Published: Aug 24, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Claims struct {
Username string `json:"username"`
Roles []Role `json:"roles"`
jwt.StandardClaims
}
ErrorResponse represents the token model for token response messages
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.