Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leaser ¶
type Leaser interface { // lease the resource r for duration. When the lease expires, invoke func call. // revoke a lease can be refreshed by calling Lease() again on the same resource. Lease(r string, d time.Duration, revoke func()) // if resource exists then cancel the old timer and delete the entry. Return(r string) bool }
Click to show internal directories.
Click to hide internal directories.