Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.commonspace.globalsync"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalSync ¶
type GlobalSync interface {
app.ComponentRunnable
RequestPool(spaceId string) RequestPool
Limit(spaceId string) *Limit
}
func New ¶
func New() GlobalSync
type RequestPool ¶
type RequestPool interface {
TryTake(peerId, objectId string) bool
Release(peerId, objectId string)
Run()
QueueRequestAction(peerId, objectId string, action func(ctx context.Context), remove func()) (err error)
Close()
}
func NewRequestPool ¶
func NewRequestPool(closePeriod, gcPeriod time.Duration) RequestPool
Click to show internal directories.
Click to hide internal directories.