dynamo

package
v0.0.0-...-15c3ca4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages interactions with the dynamodb table.

func NewManager

func NewManager(tableName string) *Manager

NewManager creates a new manager.

func (*Manager) CreateGin

func (mgr *Manager) CreateGin(in data.CreateGinInput) error

CreateGin attempts to create a unique gin and insert to dynamo, returns false if gin already exists.

func (*Manager) GetGin

func (mgr *Manager) GetGin(name string) (gi data.GinItem, found bool, err error)

GetGin gets a single gin by name if it exists.

func (*Manager) ListGins

func (mgr *Manager) ListGins() (o data.ListGinOutput, err error)

ListGins lists all the gins in the database.

Jump to

Keyboard shortcuts

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