ops

package
v0.0.0-...-25a6cea Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiPrefixSubscribe   = "/subscribe"
	ApiPrefixVerify      = "/verify/"
	ApiPrefixUnsubscribe = "/unsubscribe/"
)
View Source
const ErrExternal = types.SentinelError("external error")

ErrExternal indicates that a request to an upstream service failed.

handler.Handler checks for this error in order to return an HTTP 502 when applicable.

Variables

This section is empty.

Functions

func LoadDefaultAwsConfig

func LoadDefaultAwsConfig() (cfg aws.Config, err error)

func MustLoadDefaultAwsConfig

func MustLoadDefaultAwsConfig() (cfg aws.Config)

func UnsubscribeMailto

func UnsubscribeMailto(unsubEmail, emailAddr string, uid uuid.UUID) string

func UnsubscribeUrl

func UnsubscribeUrl(apiBaseUrl, emailAddr string, uid uuid.UUID) string

func VerifyUrl

func VerifyUrl(apiBaseUrl, emailAddr string, uid uuid.UUID) string

Types

type OperationResult

type OperationResult int
const (
	Invalid OperationResult = iota
	AlreadySubscribed
	VerifyLinkSent
	Subscribed
	NotSubscribed
	Unsubscribed
)

func (OperationResult) String

func (i OperationResult) String() string

type RemoveReason

type RemoveReason string
const (
	RemoveReasonNil       RemoveReason = ""
	RemoveReasonBounce    RemoveReason = "Bounce"
	RemoveReasonComplaint RemoveReason = "Complaint"
)

Jump to

Keyboard shortcuts

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