MCPcopy
hub / github.com/olric-data/olric / EmbeddedLockContext

Struct EmbeddedLockContext

embedded_client.go:32–36  ·  view source on GitHub ↗

EmbeddedLockContext is returned by Lock and LockWithTimeout methods. It should be stored in a proper way to release the lock.

Source from the content-addressed store, hash-verified

30// EmbeddedLockContext is returned by Lock and LockWithTimeout methods.
31// It should be stored in a proper way to release the lock.
32type EmbeddedLockContext struct {
33 key string
34 token []byte
35 dm *EmbeddedDMap
36}
37
38// Unlock releases the lock.
39func (l *EmbeddedLockContext) Unlock(ctx context.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected