Durable staging handoff, transactional outbox, at-least-once worker with lease fencing, idempotent versioned pipeline, three variants, operator tooling, contract tests and evidence. Includes the review fixes: reprocess source selection and failure settlement, replay guards, stale-job retirement, PNG structural/raster validation, migration rollback safety and audit events.
20 lines
810 B
Go
20 lines
810 B
Go
package domain
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrNotFound = errors.New("not found")
|
|
ErrUsernameTaken = errors.New("username already taken")
|
|
ErrUnknownMember = errors.New("member does not exist")
|
|
ErrValidation = errors.New("validation failed")
|
|
ErrInvalidCursor = errors.New("invalid cursor")
|
|
ErrConflict = errors.New("conflict")
|
|
ErrIdempotency = errors.New("idempotency key already used with another payload")
|
|
ErrUnauthenticated = errors.New("unauthenticated")
|
|
ErrUnavailable = errors.New("temporarily unavailable")
|
|
ErrTooLarge = errors.New("payload is too large")
|
|
ErrUnsupportedMedia = errors.New("unsupported media type")
|
|
ErrIncomplete = errors.New("object is not fully uploaded")
|
|
ErrRateLimited = errors.New("too many unfinished uploads")
|
|
)
|