token

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token interface {
	Sign(userId int64, userName string, expireDuration time.Duration) (tokenString string, err error)
	Parse(tokenString string) (*claims, error)
	// contains filtered or unexported methods
}

func New

func New(secret string) Token

Jump to

Keyboard shortcuts

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