kevo/pkg/engine/errors.go
Jeremy Tregunna 4429836929 feat: Add replication manager to manage primary/replica
- Primary nodes will connect to the WAL for observations, start a gRPC
  server for replication, and shutdown properly
- Replica nodes will connect to the primary, apply received entries to
  local storage, and enforce read-only mode for consistency
- Integrates the decision primary/replica/standalone into the kevo cli
2025-04-29 15:03:03 -06:00

13 lines
450 B
Go

package engine
import "errors"
var (
// ErrEngineClosed is returned when operations are performed on a closed engine
ErrEngineClosed = errors.New("engine is closed")
// ErrKeyNotFound is returned when a key is not found
ErrKeyNotFound = errors.New("key not found")
// ErrReadOnlyMode is returned when write operations are attempted while the engine is in read-only mode
ErrReadOnlyMode = errors.New("engine is in read-only mode (replica)")
)