dynamodb

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service proxies DynamoDB requests to the official DynamoDB Local JAR, which runs as a sidecar container. This gives us perfect AWS parity for DynamoDB without reimplementing it — AWS maintains it themselves.

DynamoDB Local image: amazon/dynamodb-local Default endpoint: http://dynamodb-local:8000

func New

func New(endpoint string, logger *slog.Logger) *Service

func (*Service) Detect

func (s *Service) Detect(r *http.Request) bool

Detect identifies DynamoDB requests by the X-Amz-Target header prefix. All DynamoDB operations use DynamoDB_20120810.<OperationName>

func (*Service) HealthCheck

func (s *Service) HealthCheck() bool

HealthCheck pings DynamoDB Local to see if it's available

func (*Service) Name

func (s *Service) Name() string

func (*Service) ServeHTTP

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

Jump to

Keyboard shortcuts

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