errs

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: LGPL-2.1, LGPL-2.1-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpUnmarshalLBSMessage = "unmarshalling LBS message"
)

Variables

View Source
var (
	ErrInvalidIdleTime       = errors.New("invalid heartbeat interval value: must be >0 and <2*heartbeat interval")
	ErrInvalidRecoveryCount  = errors.New("invalid recovery count: must be non-zero positive integer")
	ErrInvalidKspChanSize    = errors.New("invalid ksp chan size: must be non-zero positive integer")
	ErrInvalidKspChanTimeout = errors.New("invalid ksp chan timeout: must be >= 1 min")
	ErrInvalidOutputChanSize = errors.New("invalid output chan size: must be non-zero positive integer")
	ErrPodConfigMissing      = errors.New("pod name or pod IP is missing")
)

Config validation

View Source
var (
	ErrInvalidKeyForLBSMessage  = errors.New("invalid key for LBS; must be `lbs-input`")
	ErrInvalidLBSMessage        = errors.New("invalid or malformed LBS message")
	ErrNoDatastreamInLBSMessage = errors.New("lbs message does not have data stream name")
)

Input validation

View Source
var (
	ErrAlreadyClaimed                = errors.New("already claimed")
	ErrDataStreamNotFound            = errors.New("data stream not found")
	ErrExistingConfigWithoutOverride = errors.New("existing configuration detected without force override option")
)

Internal state

Functions

func NewEncodingError

func NewEncodingError(op EncodingOp, err error) error

func NewMutexError

func NewMutexError(op MutexOp, err error) error

func NewRedisError

func NewRedisError(op RedisOp, err error) error

Types

type EncodingError

type EncodingError struct {
	Op  EncodingOp
	Err error
}

func (*EncodingError) Error

func (e *EncodingError) Error() string

func (*EncodingError) Unwrap

func (e *EncodingError) Unwrap() error

type EncodingOp

type EncodingOp string

func (EncodingOp) String

func (op EncodingOp) String() string

type MutexErr

type MutexErr struct {
	Op       MutexOp
	LockName string
	Err      error
}

func (*MutexErr) Error

func (e *MutexErr) Error() string

func (*MutexErr) Unwwrap

func (e *MutexErr) Unwwrap() error

type MutexOp

type MutexOp string
const (
	OpLockMutex   MutexOp = "locking mutex"
	OpExtendMutex MutexOp = "extending mutex lock"
	OpUnlockMutex MutexOp = "unlocking mutex"
)

func (MutexOp) String

func (op MutexOp) String() string

type RedisErr

type RedisErr struct {
	Op  RedisOp
	Err error
}

func (*RedisErr) Error

func (e *RedisErr) Error() string

func (*RedisErr) Unwwrap

func (e *RedisErr) Unwwrap() error

type RedisOp

type RedisOp string
const (
	OpEnableKeyspaceNotification RedisOp = "enabling keyspace notifications"
	OpGetUnackedMessages         RedisOp = "getting unacked messages from LBS"
	OpProcessLBSMessages         RedisOp = "processing LBS messages"
	OpCreateLBSStream            RedisOp = "creating LBS stream"
	OpClaimStream                RedisOp = "claiming stream"
	OpReadClaimedStream          RedisOp = "reading result from claimed stream"
	OpAckStream                  RedisOp = "acknowledging stream"
	OpDelStream                  RedisOp = "deleting stream"
	OpClosePubSub                RedisOp = "closing redis pubsub"
)

func (RedisOp) String

func (op RedisOp) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL