dynamo

package
v0.0.0-...-897bb11 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(cfg aws.Config, tableName string) (*Client, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, v interface{}) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, pk, sk string, v interface{}) error

func (*Client) GetAllByGsi

func (c *Client) GetAllByGsi(ctx context.Context, gsi, sk string, v interface{}) error

func (*Client) GetAllByKeys

func (c *Client) GetAllByKeys(ctx context.Context, keys []Key) ([]map[string]types.AttributeValue, error)

func (*Client) GetOneByPartialSk

func (c *Client) GetOneByPartialSk(ctx context.Context, pk, partialSk string, v interface{}) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, v interface{}) error

type Key

type Key struct {
	PK string
	SK string
}

type MultipleResultsError

type MultipleResultsError struct{}

func (MultipleResultsError) Error

func (n MultipleResultsError) Error() string

type NotFoundError

type NotFoundError struct{}

func (NotFoundError) Error

func (n NotFoundError) Error() string

Jump to

Keyboard shortcuts

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