types

package
v0.0.0-...-e805d58 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package types abstracts the table and row details making it easy to use dynamodb as an atomic counter

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAtomicAttribute means that the AtomicKey was not among the attributes
	// returned by DynamoDB
	ErrAtomicAttribute = errors.New("could not get attribute value for the atomic field")
)

Functions

This section is empty.

Types

type Row

type Row struct {
	Schema     *Schema
	HashValue  *string
	RangeValue *string
	Incr       *string
}

Row stores all the necessary information to atomically increment a row

type Schema

type Schema struct {
	HashKey   *string
	RangeKey  *string
	TableName *string
	AtomicKey *string
}

Schema stores all the necessary information to create or update a table

Jump to

Keyboard shortcuts

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