Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumView ¶
type AlbumView struct {
FindAlbumByOwnerPort FindAlbumByOwnerPort
FindAlbumsByIdsPort FindAlbumsByIdsPort
FindAlbumSharingToPort FindAlbumSharingToPort
}
func (*AlbumView) ListAlbums ¶
func (v *AlbumView) ListAlbums(ctx context.Context, user usermodel.CurrentUser, filter ListAlbumsFilter) ([]*VisibleAlbum, error)
ListAlbums returns albums visible by the user (owned by current user, and shared to him)
type FindAlbumByOwnerPort ¶
type FindAlbumSharingToPort ¶
type FindAlbumsByIdsPort ¶
type ListAlbumsFilter ¶
type ListAlbumsFilter struct {
OnlyDirectlyOwned bool // OnlyDirectlyOwned provides a sub-view where only resources directly owned by user are displayed and accessible
}
type SharedWithUserPort ¶
type SharedWithUserPort interface {
}
type VisibleAlbum ¶
type VisibleAlbum struct {
catalog.Album
MediaCount int // Count is the number of medias on the album
Visitors []usermodel.UserId // Visitors are the users that can see the album ; only visible to the owner of the album
OwnedByCurrentUser bool // OwnedByCurrentUser is set to true when the user is an owner of the album
}
Click to show internal directories.
Click to hide internal directories.