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 d. When the lease expires, invoke `revoke` // a lease can be refreshed by calling Lease() again on the same resource Lease(r string, d time.Duration, revoke func()) // return the resource r. Return(r string) }
Leaser manages resources via leases
Click to show internal directories.
Click to hide internal directories.