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