dynamodbutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyName   = "key"
	ValueName = "value"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, cfg kvs.Config) (*Client, error)

func (Client) CreateTable

func (client Client) CreateTable(ctx context.Context) (*dynamodb.CreateTableOutput, error)

func (Client) GetAny

func (client Client) GetAny(ctx context.Context, key string, val any) error

func (Client) GetOrDefaultString

func (client Client) GetOrDefaultString(ctx context.Context, key, def string) string

func (Client) GetString

func (client Client) GetString(ctx context.Context, key string) (string, error)

func (Client) SetAny

func (client Client) SetAny(ctx context.Context, key string, val any) error

func (Client) SetString

func (client Client) SetString(ctx context.Context, key, val string) error

type Item

type Item struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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