token

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2015 License: MIT Imports: 5 Imported by: 10

Documentation

Index

Constants

View Source
const (
	DeviceTokenKeyPrefix = "device:token:"
	DeviceTokenExpires   = 7200
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

func NewHelper

func NewHelper(host string) *Helper

func (*Helper) ClearToken

func (helper *Helper) ClearToken(id uint64) error

func (*Helper) GenerateToken

func (helper *Helper) GenerateToken(id uint64) ([]byte, error)

func (*Helper) ValidateToken

func (helper *Helper) ValidateToken(id uint64, token []byte) error

Jump to

Keyboard shortcuts

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