dynamo

package
v0.0.0-...-da73495 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dynamo

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

Dynamo implements the participant Repository class to interact with DynamoDb.

func New

func New(dynamoIface dynamodbiface.ClientAPI, tableName string) *Dynamo

New returns a new dynamo repository.

func (*Dynamo) Delete

func (d *Dynamo) Delete(id string) participant.Error

Delete removes and entry matching the provided id.

func (*Dynamo) Get

Get retrieves a participant from DynamoDb.

func (*Dynamo) GetAll

func (d *Dynamo) GetAll() ([]*participant.Participant, participant.Error)

GetAll retrieves all participants from DynamoDb.

func (*Dynamo) Save

Save persists a participant to DynamoDb.

Jump to

Keyboard shortcuts

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