models

package
v0.0.0-...-9a247b6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id       bson.ObjectId `db:"_id" json:"-" bson:"_id,omitempty"`
	Username string        `db:"username" json:"username"`
	Password string        `db:"password" json:"-"`
	State    string        `db:"state" json:"state"`
	Started  uint64        `db:"started" json:"started"`
}

type UserClaims

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

UserClaims - is standart pack for user's fields

Jump to

Keyboard shortcuts

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