Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LockValidity = 60 * time.Second LockRetryDelay = 100 * time.Millisecond )
Functions ¶
func AcquireJetstreamConn ¶
Types ¶
type Lock ¶
type Lock struct { *lock.LockOptions // contains filtered or unexported fields }
type LockManager ¶
type LockManager struct {
// contains filtered or unexported fields
}
Requires jetstream 2.9+
func NewLockManager ¶
func (*LockManager) Health ¶
func (l *LockManager) Health(ctx context.Context) (conditions []string, err error)
func (*LockManager) NewLock ¶
func (l *LockManager) NewLock(key string, opts ...lock.LockOption) lock.Lock
Click to show internal directories.
Click to hide internal directories.