Documentation ¶
Index ¶
Constants ¶
View Source
const ( AcquireTypeAcquire = AcquireType(iota) AcquireTypeReport AcquireTypeDefault = AcquireTypeAcquire )
View Source
const (
DefaultDecrease = 100 * time.Millisecond
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acquire ¶
type Acquire interface { // Type defines type of acquire request Type() AcquireType // OperationTimeout defines operation Timeout for acquire request OperationTimeout() time.Duration // OperationCancelAfter defines operation CancelAfter for acquire request OperationCancelAfter() time.Duration }
func NewAcquire ¶
func NewAcquire(opts ...AcquireOption) Acquire
type AcquireOption ¶
type AcquireOption func(h *acquireOptionsHolder)
func WithAcquire ¶
func WithAcquire() AcquireOption
func WithOperationCancelAfter ¶
func WithOperationCancelAfter(operationCancelAfter time.Duration) AcquireOption
func WithOperationTimeout ¶
func WithOperationTimeout(operationTimeout time.Duration) AcquireOption
func WithReport ¶
func WithReport() AcquireOption
type AcquireType ¶
type AcquireType uint8
Click to show internal directories.
Click to hide internal directories.