security

package
v0.0.0-...-e27f3f3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJwt

func DecodeJwt(secret Secret, tokenString EncodedJwt) (token *jwt.Token, err error)

Types

type EncodedJwt

type EncodedJwt string

func EncodeJwt

func EncodeJwt(secret Secret, claims *jwt.StandardClaims) (EncodedJwt, error)

func GenJwt

func GenJwt(secret Secret, fileId string) EncodedJwt

func GetJwt

func GetJwt(r *http.Request) EncodedJwt

type Secret

type Secret string

Jump to

Keyboard shortcuts

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