dynamodb

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewAwsConfig

func NewAwsConfig(cfg document.Config) *aws.Config

Types

type Client

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

func NewClient

func NewClient(cfg document.Config) (*Client, error)

func (Client) CreateTable

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

func (Client) GetOrEmptyString

func (client Client) GetOrEmptyString(key string) string

func (Client) GetString

func (client Client) GetString(key string) (string, error)

func (Client) SetString

func (client Client) SetString(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