token

package
v0.0.0-...-c937b9e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const DefaultScope = "all"
View Source
const TokenLength = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Id        bson.ObjectId `json:"id,omitempty" bson:"_id"`
	User      bson.ObjectId `json:"user"`
	Name      string        `json:"name,omitempty" description:"token name"`
	Hash      string        `json:"-"`
	HashValue string        `json:"value" bson:"-"`
	Scopes    []string      `json:"scopes,omitempty"`
	Created   time.Time     `json:"created,omitempty"`
	Updated   time.Time     `json:"updated,omitempty"`
	Removed   bool          `json:"-"`
}

type TokenList

type TokenList struct {
	pagination.Meta `json:",inline"`
	Results         []*Token `json:"results"`
}

Jump to

Keyboard shortcuts

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