Documentation
¶
Index ¶
- Constants
- func AwsError(prefix string, err error) error
- func LoadDefaultAwsConfig() (cfg aws.Config, err error)
- func MustLoadDefaultAwsConfig() (cfg aws.Config)
- func UnsubscribeMailto(unsubEmail, emailAddr string, uid uuid.UUID) string
- func UnsubscribeUrl(apiBaseUrl, emailAddr string, uid uuid.UUID) string
- func VerifyUrl(apiBaseUrl, emailAddr string, uid uuid.UUID) string
- type OperationResult
- type RemoveReason
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 AwsError ¶
Inspired by: https://aws.github.io/aws-sdk-go-v2/docs/handling-errors/#api-error-responses
func LoadDefaultAwsConfig ¶
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" )
Click to show internal directories.
Click to hide internal directories.