pkg

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionRecreate             = "recreate_token"
	ActionVerifyEmail          = "verify_email"
	ActionRemoveFromCalendar   = "remove_from_calendar"
	ActionUnsubscribeScheduled = "unsubscribe_scheduled"
)

Actions

Variables

CodeLifetimes holds the default lifetime of the different action codes

Functions

func NewCode

func NewCode() string

NewCode creates a new code

Types

type ActionInfo

type ActionInfo struct {
	Action string
	Code   string
}

ActionInfo is type for associating an Action with a Code

func CtxGetActionInfo

func CtxGetActionInfo(ctx *fiber.Ctx) ActionInfo

CtxGetActionInfo obtains the ActionInfo from a fiber.Ctx

Jump to

Keyboard shortcuts

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