services

package
v0.0.0-...-87a3a10 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeToken

func DecodeToken(tknStr string) (string, string, error)

DecodeToken handles decoding of a jwt token

func GenerateToken

func GenerateToken(userID string) (string, error)

GenerateToken handles generation of a jwt code

func RefreshToken

func RefreshToken(tknStr string) (string, string, error)

RefreshToken handles refreshing a jwt token

func SendMail

func SendMail(toMail string, name string, subject string, body string) (*rest.Response, error)

SendMail handles sending based on parameters via sendgrid

Types

type Claims

type Claims struct {
	UserID string `json:"username"`
	jwt.StandardClaims
}

Claims defines jwt claims

Jump to

Keyboard shortcuts

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