Files
galaxy-game/authsession/internal/ports/errors.go
T
2026-04-08 16:23:07 +02:00

17 lines
588 B
Go

// Package ports defines the storage-agnostic and transport-agnostic service
// boundaries used by the auth/session application layer.
package ports
import "errors"
var (
// ErrNotFound reports that a requested source-of-truth record or remote
// subject does not exist in the dependency behind the port.
ErrNotFound = errors.New("ports: record not found")
// ErrConflict reports that a create or compare-and-swap style mutation
// cannot be applied because the current dependency state no longer matches
// the caller expectation.
ErrConflict = errors.New("ports: conflict")
)