jwt

package
v0.0.0-...-4061f55 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(data Data) (*string, error)

func Setup

func Setup(cfg Config)

Types

type Config

type Config struct {
	Secret string
	// contains filtered or unexported fields
}

type Data

type Data struct {
	User uint
	Role string
	TTL  *time.Time
}

func Parse

func Parse(strToken string) (*Data, error)

func (*Data) Expired

func (d *Data) Expired() bool

Jump to

Keyboard shortcuts

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