Documentation ¶
Overview ¶
Package awssns implements an AWS NSN integration.
Index ¶
- type Config
- type Integration
- func (i *Integration) Close() error
- func (i *Integration) DataDownChan() chan integration.DataDownPayload
- func (i *Integration) SendACKNotification(ctx context.Context, pl integration.ACKNotification) error
- func (i *Integration) SendDataUp(ctx context.Context, pl integration.DataUpPayload) error
- func (i *Integration) SendErrorNotification(ctx context.Context, pl integration.ErrorNotification) error
- func (i *Integration) SendJoinNotification(ctx context.Context, pl integration.JoinNotification) error
- func (i *Integration) SendLocationNotification(ctx context.Context, pl integration.LocationNotification) error
- func (i *Integration) SendStatusNotification(ctx context.Context, pl integration.StatusNotification) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AWSRegion string `mapstructure:"aws_region"` AWSAccessKeyID string `mapstructure:"aws_access_key_id"` AWSSecretAccessKey string `mapstructure:"aws_secret_access_key"` TopicARN string `mapstructure:"topic_arn"` }
Config holds the AWS SNS integration configuration.
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
Integration implements the AWS SNS integration.
func (*Integration) DataDownChan ¶
func (i *Integration) DataDownChan() chan integration.DataDownPayload
DataDownChan return nil.
func (*Integration) SendACKNotification ¶
func (i *Integration) SendACKNotification(ctx context.Context, pl integration.ACKNotification) error
SendACKNotification sends an ack notification.
func (*Integration) SendDataUp ¶
func (i *Integration) SendDataUp(ctx context.Context, pl integration.DataUpPayload) error
SendDataUp sends an uplink data payload.
func (*Integration) SendErrorNotification ¶
func (i *Integration) SendErrorNotification(ctx context.Context, pl integration.ErrorNotification) error
SendErrorNotification sends an error notification.
func (*Integration) SendJoinNotification ¶
func (i *Integration) SendJoinNotification(ctx context.Context, pl integration.JoinNotification) error
SendJoinNotification sends a join notification.
func (*Integration) SendLocationNotification ¶
func (i *Integration) SendLocationNotification(ctx context.Context, pl integration.LocationNotification) error
SendLocationNotification sends a location notification.
func (*Integration) SendStatusNotification ¶
func (i *Integration) SendStatusNotification(ctx context.Context, pl integration.StatusNotification) error
SendStatusNotification sends a status notification.
Click to show internal directories.
Click to hide internal directories.