simpletoken: github.com/ahmdrz/simpletoken Index | Files | Directories

package simpletoken

import "github.com/ahmdrz/simpletoken"

Index

Package Files

simpletoken.go

type SimpleToken Uses

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

func New Uses

func New(algorithm string, secret []byte) (*SimpleToken, error)

func (*SimpleToken) Generate Uses

func (s *SimpleToken) Generate(payload interface{}) (*Token, error)

func (*SimpleToken) Parse Uses

func (s *SimpleToken) Parse(token []byte, output interface{}) error

func (*SimpleToken) ParseString Uses

func (s *SimpleToken) ParseString(token string, output interface{}) error

type Token Uses

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

func (*Token) Bytes Uses

func (t *Token) Bytes() []byte

func (*Token) String Uses

func (t *Token) String() string

Directories

PathSynopsis
example

Package simpletoken imports 10 packages (graph) and is imported by 1 packages. Updated 2019-04-16. Refresh now. Tools for package owners.