token

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	ParseFromRequest(*http.Request) (map[string]interface{}, error)
	Parse(str string) (map[string]interface{}, error)
	New(data map[string]interface{}, minutes uint) (string, error)
}

type RedisProvider

type RedisProvider struct {
	Redis *redis.Pool `inject:""`
}

func (*RedisProvider) New

func (p *RedisProvider) New(data map[string]interface{}, minutes uint) (string, error)

func (*RedisProvider) Parse

func (p *RedisProvider) Parse(str string) (map[string]interface{}, error)

func (*RedisProvider) ParseFromRequest

func (p *RedisProvider) ParseFromRequest(req *http.Request) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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