util

package
v0.0.0-...-56f3798 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeToken

func DecodeToken(tokenString string) (string, string, error)

DecodeToken decodes a token

func EncodeToken

func EncodeToken(id, email string) (string, error)

EncodeToken encodes a token

func StringToID

func StringToID(s string) (userID int64)

StringToID converts a string to a ID

Types

type FeedbackAppClaims

type FeedbackAppClaims struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	jwt.StandardClaims
}

FeedbackAppClaims are my custom claims

Jump to

Keyboard shortcuts

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