Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // ListFavorites returns all resources that were favorited by a user. ListFavorites(ctx context.Context, userID *user.UserId) ([]*provider.ResourceId, error) // SetFavorite marks a resource as favorited by a user. SetFavorite(ctx context.Context, userID *user.UserId, resourceInfo *provider.ResourceInfo) error // UnsetFavorite unmarks a resource as favorited by a user. UnsetFavorite(ctx context.Context, userID *user.UserId, resourceInfo *provider.ResourceInfo) error }
Manager defines an interface for a favorites manager.
Click to show internal directories.
Click to hide internal directories.