Documentation ¶
Overview ¶
Package sns handles interactions with aws-sdk-go/service/sns
Index ¶
Constants ¶
View Source
const ( // ErrEmptyParameter is used when a required parameter is empty ErrEmptyParameter = "EmptyParameter" // ErrNoPointerParameter is used when a parameter is expected to be a pointer but it wasn't ErrNoPointerParameter = "NoPointerParameter" // ErrPointerParameterNotAllowed is used when a parameter is expected to be not a pointer but it wasn't ErrPointerParameterNotAllowed = "PointerParameterNotAllowed" )
View Source
const ( // MessageStructure represents the default MessageStructure for SNS MessageStructure = "json" // Endpoint represents the parameter named endpoint Endpoint = "endpoint" // Input represents the parameter named input Input = "input" // Message represents the parameter named message Message = "message" )
Variables ¶
This section is empty.
Functions ¶
func NewPublishInput ¶
func NewPublishInput(input interface{}, messageAttributes map[string]interface{}, endpoint string) (*sns.PublishInput, error)
NewPublishInput returns a new *PublishInput given a body and an endpoint
func UnmarshalMessage ¶ added in v1.0.1
UnmarshalMessage unmarshal an SNS Message to a given interface
Types ¶
type Body ¶
type Body struct {
Default string `json:"default"`
}
Body is used to initialize a valid SNS message
Click to show internal directories.
Click to hide internal directories.