dynamodbstreams

package
v0.0.1-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dynamodbstreams implements the AWS DynamoDB Streams API emulator. It reads stream data produced by the dynamodb service and exposes it via the DynamoDBStreams_20120810 target prefix on the shared POST / endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDBService

type DynamoDBService interface {
	ListStreamEnabledTables(ctx context.Context) ([]*dynamodb.Table, error)
	GetStreamTable(ctx context.Context, streamArn string) (*dynamodb.Table, error)
	GetStreamRecordsSince(ctx context.Context, tableName string, afterSeq int64, limit int) ([]*dynamodb.StreamRecord, int64, error)
}

DynamoDBService is the narrow interface the streams service needs from the DynamoDB service. *dynamodb.Service satisfies this automatically.

type Service

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

Service implements router.Service for DynamoDB Streams.

func New

func New(ddb DynamoDBService, logger *zap.Logger) *Service

New returns a configured DynamoDB Streams Service.

func (*Service) Dispatch

func (s *Service) Dispatch(w http.ResponseWriter, r *http.Request)

Dispatch routes to the correct handler based on X-Amz-Target.

func (*Service) Name

func (s *Service) Name() string

Name returns the service identifier.

func (*Service) Operations

func (s *Service) Operations() []op.Operation

Operations implements router.ProtocolService.

func (*Service) RegisterRoutes

func (s *Service) RegisterRoutes(r chi.Router)

RegisterRoutes is a no-op - DynamoDB Streams uses POST / via target dispatch.

func (*Service) SupportedProtocols

func (s *Service) SupportedProtocols() []codec.Codec

SupportedProtocols implements router.ProtocolService.

func (*Service) TargetPrefix

func (s *Service) TargetPrefix() string

TargetPrefix returns the X-Amz-Target prefix for DynamoDB Streams dispatch.

Jump to

Keyboard shortcuts

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