Documentation
¶
Index ¶
- Variables
- type InMemoryConfirm
- func (a *InMemoryConfirm) AcquireLock() error
- func (a *InMemoryConfirm) CreateBlocker() error
- func (a *InMemoryConfirm) DeletePlan() error
- func (a *InMemoryConfirm) HasBlocker() bool
- func (a *InMemoryConfirm) IsPlanExpired() bool
- func (a *InMemoryConfirm) ReadPlan() (*domain.OperationPlan, error)
- func (a *InMemoryConfirm) ReleaseLock() error
- func (a *InMemoryConfirm) RemoveBlocker() error
- func (a *InMemoryConfirm) WritePlan(plan domain.OperationPlan) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOperationInProgress = &confirmError{"another operation is in progress"}
Functions ¶
This section is empty.
Types ¶
type InMemoryConfirm ¶
type InMemoryConfirm struct {
// contains filtered or unexported fields
}
func NewInMemory ¶
func NewInMemory(ttl time.Duration) *InMemoryConfirm
func (*InMemoryConfirm) AcquireLock ¶
func (a *InMemoryConfirm) AcquireLock() error
func (*InMemoryConfirm) CreateBlocker ¶
func (a *InMemoryConfirm) CreateBlocker() error
func (*InMemoryConfirm) DeletePlan ¶
func (a *InMemoryConfirm) DeletePlan() error
func (*InMemoryConfirm) HasBlocker ¶
func (a *InMemoryConfirm) HasBlocker() bool
func (*InMemoryConfirm) IsPlanExpired ¶
func (a *InMemoryConfirm) IsPlanExpired() bool
func (*InMemoryConfirm) ReadPlan ¶
func (a *InMemoryConfirm) ReadPlan() (*domain.OperationPlan, error)
func (*InMemoryConfirm) ReleaseLock ¶
func (a *InMemoryConfirm) ReleaseLock() error
func (*InMemoryConfirm) RemoveBlocker ¶
func (a *InMemoryConfirm) RemoveBlocker() error
func (*InMemoryConfirm) WritePlan ¶
func (a *InMemoryConfirm) WritePlan(plan domain.OperationPlan) error
Click to show internal directories.
Click to hide internal directories.