Documentation
¶
Overview ¶
Package handler implements AWS Lambda event handling.
Index ¶
Constants ¶
View Source
const ( Undefined eventOperationType = iota Subscribe Verify Unsubscribe )
View Source
const ErrUserInput = types.SentinelError("invalid user input")
Inspired by the example from the "Customizing error tests with Is and As methods" section of https://go.dev/blog/go1.13-errors.
View Source
const ResponseTemplate = `` /* 259-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Type EventType
ApiRequest *awsevents.APIGatewayProxyRequest
MailtoEvent *awsevents.SimpleEmailEvent
SnsEvent *awsevents.SNSEvent
CommandLineEvent *events.CommandLineEvent
Unknown []byte
}
type Options ¶
type Options struct {
ApiDomainName string
ApiMappingKey string
EmailDomainName string
EmailSiteTitle string
SenderName string
SenderUserName string
UnsubscribeUserName string
UnsubscribeFormPath string
SubscribersTableName string
ConfigurationSet string
MaxBulkSendCapacity types.Capacity
RedirectPaths RedirectPaths
}
type ParseError ¶
type ParseError struct {
Type eventOperationType
Message string
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type RedirectMap ¶
type RedirectMap map[ops.OperationResult]string
type RedirectPaths ¶
type UndefinedEnvVarsError ¶
type UndefinedEnvVarsError struct {
UndefinedVars []string
}
func (*UndefinedEnvVarsError) Error ¶
func (e *UndefinedEnvVarsError) Error() string
Click to show internal directories.
Click to hide internal directories.