notifier

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IncidentNotifier

type IncidentNotifier interface {
	SendIncidentNotification(opts *SendIncidentNotificationOpts) error
}

type SendIncidentNotificationOpts

type SendIncidentNotificationOpts struct {
	Users        []*models.User
	URL          string
	ModuleName   string
	Title        string
	Message      string
	Notification *models.Notification
}

type SendInviteLinkEmailOpts

type SendInviteLinkEmailOpts struct {
	Email            string
	URL              string
	OrganizationName string
	InviterAddress   string
}

type SendPasswordResetEmailOpts

type SendPasswordResetEmailOpts struct {
	Email string
	URL   string
}

type SendVerificationEmailOpts

type SendVerificationEmailOpts struct {
	Email string
	URL   string
}

type UserNotifier

type UserNotifier interface {
	GetID() string
	SendPasswordResetEmail(opts *SendPasswordResetEmailOpts) error
	SendVerificationEmail(opts *SendVerificationEmailOpts) error
	SendInviteLinkEmail(opts *SendInviteLinkEmailOpts) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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