Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Add(ctx context.Context, userid, shareID string) error
- func (c *Cache) List(userid string) map[string]SpaceShareIDs
- func (c *Cache) Persist(ctx context.Context, userid string) error
- func (c *Cache) Remove(ctx context.Context, userid, shareID string) error
- func (c *Cache) Sync(ctx context.Context, userID string) error
- type SpaceShareIDs
- type UserShareCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { // contains filtered or unexported fields }
Cache caches the list of share ids for users/groups It functions as an in-memory cache with a persistence layer The storage is sharded by user/group
func (*Cache) List ¶
func (c *Cache) List(userid string) map[string]SpaceShareIDs
List return the list of spaces/shares for the given user/group
type SpaceShareIDs ¶
type SpaceShareIDs struct {}
SpaceShareIDs holds the unique list of share ids for a space
type UserShareCache ¶
type UserShareCache struct {}
UserShareCache holds the space/share map for one user
Click to show internal directories.
Click to hide internal directories.