repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArtistsTable = "artists"
	SongsTable   = "songs"
)
View Source
const TableName = "artists"

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoRepository

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

func NewDynamoRepository

func NewDynamoRepository(client *dynamodb.Client) *DynamoRepository

func (*DynamoRepository) DeleteArtist

func (d *DynamoRepository) DeleteArtist(ctx context.Context, id uuid.UUID) error

func (*DynamoRepository) GetArtist

func (d *DynamoRepository) GetArtist(ctx context.Context, id uuid.UUID) (*domain.Artist, error)

func (*DynamoRepository) ListArtists

func (d *DynamoRepository) ListArtists(ctx context.Context) ([]*domain.Artist, error)

func (*DynamoRepository) PutArtist

func (d *DynamoRepository) PutArtist(ctx context.Context, artist *domain.Artist) error

Jump to

Keyboard shortcuts

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