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 NewRedisError ¶
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 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" )
Click to show internal directories.
Click to hide internal directories.