catalogviewsdynamodb

package
v1.6.27 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AvailabilityTypeOwner   = "OWNED"
	AvailabilityTypeVisitor = "VISITOR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumSizeRecord

type AlbumSizeRecord struct {
	appdynamodb.TablePk
	AlbumOwner       string
	AlbumFolderName  string
	AvailabilityType string
	UserId           string
	Count            int
}

type AlbumViewRepository

type AlbumViewRepository struct {
	Client    *dynamodb.Client
	TableName string
}

func (*AlbumViewRepository) DeleteAlbumSize

func (a *AlbumViewRepository) DeleteAlbumSize(ctx context.Context, availability catalogviews.Availability, albumId catalog.AlbumId) error

func (*AlbumViewRepository) GetAlbumSizes added in v1.6.7

func (a *AlbumViewRepository) GetAlbumSizes(ctx context.Context, userId usermodel.UserId, owner ...ownermodel.Owner) ([]catalogviews.UserAlbumSize, error)

func (*AlbumViewRepository) GetAvailabilitiesByUser

func (a *AlbumViewRepository) GetAvailabilitiesByUser(ctx context.Context, userId usermodel.UserId) ([]catalogviews.UserAlbumSize, error)

func (*AlbumViewRepository) InsertAlbumSize

func (a *AlbumViewRepository) InsertAlbumSize(ctx context.Context, albumSizes []catalogviews.MultiUserAlbumSize) error

func (*AlbumViewRepository) UpdateAlbumSize

func (a *AlbumViewRepository) UpdateAlbumSize(ctx context.Context, albumCountUpdates []catalogviews.AlbumSizeDiff) error

Jump to

Keyboard shortcuts

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