songstorage

package
v0.6.10-0...-926069d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SongsTable = "Songs"
)

Variables

View Source
var (
	SongUnmarshalMark     = domains.New("song_unmarshal_fail")
	SongNotFoundMark      = domains.New("song_not_found")
	SongAlreadyExistsMark = domains.New("song_already_exists")
	DefaultErrorMark      = domains.New("default_error")
)

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(dynamoDB dynamolib.DynamoDBWrapper) DB

func (DB) CreateSong

func (d DB) CreateSong(ctx context.Context, newSong songentity.Song) error

func (DB) DeleteSong

func (d DB) DeleteSong(ctx context.Context, songID string) error

func (DB) GetSong

func (d DB) GetSong(ctx context.Context, songID string) (songentity.Song, error)

func (DB) GetSongSummariesForUser

func (d DB) GetSongSummariesForUser(ctx context.Context, ownerID string) ([]songentity.SongSummary, error)

func (DB) UpdateSong

func (d DB) UpdateSong(ctx context.Context, song songentity.Song) error

Jump to

Keyboard shortcuts

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