dynamodb

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package dynamodb implements the DynamoDB JSON-RPC protocol as a server.Handler. Point the real aws-sdk-go-v2 DynamoDB client at a Server registered with this handler and operations work against an in-memory database driver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler serves DynamoDB JSON-RPC requests against a database.Database driver.

func New

func New(db dbdriver.Database) *Handler

New returns a DynamoDB handler backed by db.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for DynamoDB-shaped requests, identified by an X-Amz-Target header of "DynamoDB_20120810.<Operation>".

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP dispatches DynamoDB operations based on X-Amz-Target.

Jump to

Keyboard shortcuts

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