repository

package
v0.0.0-...-eca6f23 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewItemRepoDynamoDB

func NewItemRepoDynamoDB(cfg *config.Config, driver dynamodb.DynamodbClient) *dynamodb.ItemRepo

func NewItemRepoLocal

func NewItemRepoLocal() *local.ItemRepo

Types

type ItemRepo

type ItemRepo interface {
	Get(ctx context.Context, id string) (domain.Item, error)
	Create(ctx context.Context, it domain.Item) (domain.Item, error)
	Update(ctx context.Context, id string, updates domain.Item) (domain.Item, error)
	Delete(ctx context.Context, id string) error
}

ItemRepo defines the interface by which services can interact with a storage medium that stores the model for an Item.

Directories

Path Synopsis
Package dynamodb is a generated GoMock package.
Package dynamodb is a generated GoMock package.

Jump to

Keyboard shortcuts

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