examples

package
v0.0.0-...-08a49e0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete()

DeleteItem shows an example, how to delete item by key

func DeleteItems

func DeleteItems()

DeleteItems shows an example, how to delete multiple items by keys

func Get

func Get()

GetItem shows an example how to get an item from dynamodb

func GetFromGlobalIndex

func GetFromGlobalIndex()

GetFromGlobalIndex shows an example, how to get item from global index

func GetItems

func GetItems()

GetItems shows an example, how to get multiple items from dynamodb

func GetItemsFromGlobalIndex

func GetItemsFromGlobalIndex()

GetItemsFromGlobalIndex shows an example, how to get multiple items from global index

func Query

func Query()

Query shows an example, how to query multiple items from dynamodb

func Save

func Save()

SaveItem shows an example, how to save an item

func SaveItems

func SaveItems()

SaveItems shows an example, how to save multiple items

func Update

func Update()

Update shows an example, how to update certain fields of an item

Types

type User

type User struct {
	UserUUID  string
	Time      time.Time
	Msg       string              `dynamo:"Message"`
	Count     int                 `dynamo:",omitempty"`
	Friends   []string            `dynamo:",set"` // Sets
	Set       map[string]struct{} `dynamo:",set"` // Map sets, too!
	SecretKey string              `dynamo:"-"`    // Ignored
}

Jump to

Keyboard shortcuts

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