- 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
13 lines
450 B
Go
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)")
|
|
)
|