handlers

package
v0.0.0-...-1b39580 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomerAccountRequestConfirmEmail

func CustomerAccountRequestConfirmEmail(payload models.UserEvent, mailer email.Client) error

func CustomerPasswordResetRequestEmail

func CustomerPasswordResetRequestEmail(payload CustomerPasswordResetRequested) error

func CustomerPasswordResetSuccessEmail

func CustomerPasswordResetSuccessEmail(payload CustomerPasswordResetSucceeded) error

func HandleCustomerAccountConfirmEmail

func HandleCustomerAccountConfirmEmail(payload CustomerAccountActivatedEventEmail) error

func HandleCustomerLoggedIn

func HandleCustomerLoggedIn(payload CustomerLoggedInEvent) error

func WrapHandleCustomerAccountConfirmedEmail

func WrapHandleCustomerAccountConfirmedEmail(event rabbitmq.Event) error

func WrapHandleCustomerAccountRequestConfirmEmail

func WrapHandleCustomerAccountRequestConfirmEmail(event rabbitmq.Event) error

func WrapHandleCustomerLoggedIn

func WrapHandleCustomerLoggedIn(event rabbitmq.Event) error

func WrapHandleCustomerPasswordResetRequestedEmail

func WrapHandleCustomerPasswordResetRequestedEmail(event rabbitmq.Event) error

func WrapHandleCustomerPasswordResetRequestedSuccessed

func WrapHandleCustomerPasswordResetRequestedSuccessed(event rabbitmq.Event) error

Types

type CustomerAccountActivatedEventEmail

type CustomerAccountActivatedEventEmail struct {
	UserID           int    `json:"customer_id"`
	TrackingClientID string `mapstructure:"tracking_client_id"`
	Country          string `mapstructure:"country_code"`
}

type CustomerLoggedInEvent

type CustomerLoggedInEvent struct {
	UserID          int    `json:"customer_id"`
	UserUUID        string `json:"customer_uuid"`
	DeviceID        string `json:"device_id"`
	ApplicationType string `json:"application_type"`
	LoginType       string `json:"login_type"`
}

type CustomerPasswordResetRequested

type CustomerPasswordResetRequested struct {
	CustomerID   int    `json:"customer_id"`
	CustomerUUID string `json:"customer_uuid"`
	ResetCode    string `json:"reset_code"`
}

type CustomerPasswordResetSucceeded

type CustomerPasswordResetSucceeded struct {
	CustomerID   int    `json:"customer_id"`
	CustomerUUID string `json:"customer_uuid"`
}

Jump to

Keyboard shortcuts

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