dynamo

package
v0.0.0-...-b35f7d5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_ENTRY_TABLE_NAME = "Leaderboard"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryDAO

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

func NewEntryDAO

func NewEntryDAO(tableName string, dbclient *dynamodb.Client, defaultTimeout time.Duration) *EntryDAO

func (*EntryDAO) CreateEntry

func (e *EntryDAO) CreateEntry(ctx context.Context, entry models.Entry) (models.Entry, error)

func (*EntryDAO) GetEntries

func (e *EntryDAO) GetEntries(ctx context.Context) ([]models.Entry, error)

func (*EntryDAO) GetEntry

func (e *EntryDAO) GetEntry(ctx context.Context, uuid string) (models.Entry, error)

read one

Jump to

Keyboard shortcuts

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