dynamodb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventMirroringToDynamoDBService

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

EventMirroringToDynamoDBService implementor of event mirroring service which stores to dynamo db

func NewEventMirroringToDynamoDBService

func NewEventMirroringToDynamoDBService(
	awsRegion string,
	awsURL string,
	awsAccessKeyID string,
	awsSecretAccessKey string,
	awsToken string,
	tableName string,
	serviceName string,
	pubsubTopics map[string]*pubsub.Topic,
	notifier notifier.Notifier,
) *EventMirroringToDynamoDBService

NewEventMirroringToDynamoDBService build new event mirroring to dynamodb services object

func (*EventMirroringToDynamoDBService) Acknowledge

func (s *EventMirroringToDynamoDBService) Acknowledge(ctx *context.Context, event *event.Event) *types.Error

Acknowledge acknowledge / remove event from dynamodb by idempotentId

func (*EventMirroringToDynamoDBService) Consume

func (s *EventMirroringToDynamoDBService) Consume(ctx *context.Context, topicName string) (*event.Event, *types.Error)

Consume consume event from dynamodb with return the first event from dynamodb

func (*EventMirroringToDynamoDBService) IsExist

func (s *EventMirroringToDynamoDBService) IsExist(ctx *context.Context, _event *event.Event) bool

IsExist check whether the event is exist in dynamodb

func (*EventMirroringToDynamoDBService) Publish

Publish publish event with mirroring in dynamodb

Jump to

Keyboard shortcuts

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