dynamodb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package dynamodb retrieves configuration values from a DynamoDB table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetItem(context.Context, *sdk.GetItemInput, ...func(*sdk.Options)) (*sdk.GetItemOutput, error)
	Query(context.Context, *sdk.QueryInput, ...func(*sdk.Options)) (*sdk.QueryOutput, error)
}

type Config

type Config struct{ TableName, KeyAttribute, SortAttribute, ValueAttribute string }

type GetOptions

type GetOptions struct {
	parameters.Options
	SDKOptions *sdk.GetItemInput
}

type MultipleOptions

type MultipleOptions struct {
	parameters.Options
	SDKOptions *sdk.QueryInput
}

type Provider

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

func New

func New(client Client, config Config) (*Provider, error)

func (*Provider) ClearCache

func (p *Provider) ClearCache()

func (*Provider) Get

func (p *Provider) Get(ctx context.Context, name string, options GetOptions) (any, error)

func (*Provider) GetMultiple

func (p *Provider) GetMultiple(ctx context.Context, path string, options MultipleOptions) (map[string]any, error)

Jump to

Keyboard shortcuts

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