Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Add(ctx context.Context, userid, shareID string) error
- func (c *Cache) List(ctx context.Context, userid string) (map[string]SpaceShareIDs, error)
- func (c *Cache) Persist(ctx context.Context, userid string) error
- func (c *Cache) Remove(ctx context.Context, userid, shareID 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
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.