Documentation ¶
Index ¶
- func IsConcurrencyError(err error) bool
- func IsPersistentError(err error) bool
- func IsRetryable(err error) bool
- func IsSerializationFailure(err error) bool
- func IsSleep(err error) bool
- func NewConcurrencyError(err error) error
- func NewIrrecoverableError(err error) error
- func NewMethodNotPossibleError(method string) error
- func NewNotFoundError(err error) error
- func NewPersistentError(err error) error
- func NewRetryable(err error) error
- func NewWithSleep(err error) error
- func PqError(err error) *pq.Error
- type ConcurrencyError
- type ErrGroupish
- type IrrecoverableError
- type MethodNotPossible
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConcurrencyError ¶
func IsPersistentError ¶
func IsRetryable ¶
func IsSerializationFailure ¶
func NewConcurrencyError ¶
func NewIrrecoverableError ¶
func NewNotFoundError ¶
func NewPersistentError ¶
func NewRetryable ¶
func NewWithSleep ¶
Types ¶
type ConcurrencyError ¶
type ConcurrencyError struct {
// contains filtered or unexported fields
}
func (*ConcurrencyError) Error ¶
func (c *ConcurrencyError) Error() string
func (*ConcurrencyError) GRPCStatus ¶
func (c *ConcurrencyError) GRPCStatus() *status.Status
func (*ConcurrencyError) Is ¶
func (c *ConcurrencyError) Is(target error) bool
func (*ConcurrencyError) Unwrap ¶
func (c *ConcurrencyError) Unwrap() error
type ErrGroupish ¶
type ErrGroupish struct {
// contains filtered or unexported fields
}
func NewErrGroupIsh ¶
func NewErrGroupIsh() *ErrGroupish
func (*ErrGroupish) Run ¶
func (e *ErrGroupish) Run(f func() error)
type IrrecoverableError ¶
type IrrecoverableError struct {
// contains filtered or unexported fields
}
vpcerrors.IrrecoverableError indicates that this work item cannot be started
func (*IrrecoverableError) Error ¶
func (p *IrrecoverableError) Error() string
func (*IrrecoverableError) Is ¶
func (p *IrrecoverableError) Is(target error) bool
func (*IrrecoverableError) Unwrap ¶
func (p *IrrecoverableError) Unwrap() error
type MethodNotPossible ¶
type MethodNotPossible struct {
// contains filtered or unexported fields
}
func (*MethodNotPossible) Error ¶
func (m *MethodNotPossible) Error() string
func (*MethodNotPossible) GRPCStatus ¶
func (m *MethodNotPossible) GRPCStatus() *status.Status
func (*MethodNotPossible) Is ¶
func (m *MethodNotPossible) Is(target error) bool
Click to show internal directories.
Click to hide internal directories.