MCPcopy
hub / github.com/benbjohnson/litestream / Leaser

Interface Leaser

leaser.go:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24type Leaser interface {
25 Type() string
26 AcquireLease(ctx context.Context) (*Lease, error)
27 RenewLease(ctx context.Context, lease *Lease) (*Lease, error)
28 ReleaseLease(ctx context.Context, lease *Lease) error
29}
30
31type Lease struct {
32 Generation int64 `json:"generation"`

Callers 31

LoggerMethod · 0.65
RunMethod · 0.65
RunMethod · 0.65
RunMethod · 0.65
dryRunPlanMethod · 0.65
TestReplicaClient_TypeFunction · 0.65

Implementers 1

Leasers3/leaser.go

Calls

no outgoing calls

Tested by

no test coverage detected