util

package
v0.0.0-...-0f93876 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHmac

func GenerateHmac(length int) []byte

func ParseJwt

func ParseJwt(tokenStr string, hmac []byte) (jwt.MapClaims, error)

func SendEmail

func SendEmail(title string, body string, recipients []string)

Types

type FailMsg

type FailMsg struct {
	Reason string `json:"reason"`
}

type NextMsg

type NextMsg struct {
	Next string `json:"nextaction"`
}

type PrincipalInfo

type PrincipalInfo struct {
	Uid  uuid.UUID
	Role string
}

Jump to

Keyboard shortcuts

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