trackstorage

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TracklistsTable = "TrackLists"
)

Variables

View Source
var (
	TrackListNotFound = domains.New("tracklist_not_found")
	TrackSizeExceeded = domains.New("track_size_exceeded")
	MarshalMark       = domains.New("marshal_fail")
	UnmarshalMark     = domains.New("unmarshal_fail")
	TrackNotFound     = domains.New("track_not_found")
	IDEmptyMark       = domains.New("id_empty")
	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) GetTrackList

func (d DB) GetTrackList(ctx context.Context, songID string) (trackentity.TrackList, error)

func (DB) SetTrackList

func (d DB) SetTrackList(ctx context.Context, tracklist trackentity.TrackList) error

func (DB) UpdateTrack

func (d DB) UpdateTrack(ctx context.Context, tracklistID string, trackID string, updater trackentity.TrackUpdater) error

Jump to

Keyboard shortcuts

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