structs

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 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 CustomClaims added in v1.0.1

type CustomClaims struct {
	User     string   `json:"user"`
	ID       int64    `json:"id"`
	Roles    []string `json:"roles"`
	Email    string   `json:"email,omitempty"`
	Name     string   `json:"name,omitempty"`
	Lastname string   `json:"last_name,omitempty"`
	ImageURL string   `json:"image_url,omitempty"`
	jwt.StandardClaims
}

type User

type User struct {
	ID        string                 `json:"id"`
	Username  string                 `json:"username"`
	FirstName string                 `json:"first_name"`
	LastName  string                 `json:"last_name"`
	FullName  string                 `json:"full_name"`
	Email     string                 `json:"email"`
	Avatar    string                 `json:"avatar"`
	Raw       map[string]interface{} `json:"raw"` // Raw data
}

User struct

Jump to

Keyboard shortcuts

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