eventstream

package
v0.0.0-...-ebf1a85 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventPayload

type EventPayload struct {
	AwsRequestID string            `json:"aws_request_id,omitempty"`
	Attributes   map[string]string `json:"attributes,omitempty"`
}

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(cfgs ...*aws.Config) *Publisher

NewPublisher new publisher

func (*Publisher) SendEvent

func (pb *Publisher) SendEvent(ctx context.Context, topicName string, subject string, requestId string, attributes map[string]string) error

func (*Publisher) SendNotification

func (pb *Publisher) SendNotification(ctx context.Context, topicName string, subject string, msg string) error

Jump to

Keyboard shortcuts

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