token

package
v0.0.0-...-e2a2c74 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(signingKey, encryptionKey string, tokens []string, store Store) auth.Provider

Types

type Store

type Store interface {
	Register(token Token, user User) (ok bool, err error)
	Get(token Token) (user User, ok bool, err error)
}

func NewBoltBackedStore

func NewBoltBackedStore(path string) (Store, error)

type Token

type Token []byte

type User

type User struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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