Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache stores the list of received shares and their states It functions as an in-memory cache with a persistence layer The storage is sharded by user
func (*Cache) Add ¶
func (c *Cache) Add(ctx context.Context, userID, spaceID string, rs *collaboration.ReceivedShare) error
Add adds a new entry to the cache
type Spaces ¶
type Spaces struct { Mtime time.Time Spaces map[string]*Space // contains filtered or unexported fields }
Spaces holds the received shares of one user per space
type State ¶
type State struct { State collaboration.ShareState MountPoint *provider.Reference }
State holds the state information of a received share
Click to show internal directories.
Click to hide internal directories.