Skip to main content

Crate cgn_core

Crate cgn_core 

Source
Expand description

Cognitora shared library.

Lean cross-cutting concerns reused by every binary: configuration, errors, BLAKE3 prefix hashing, and the concurrent prefix index.

Telemetry, TLS, and Kubernetes helpers live in dedicated cgn-* crates so this crate stays free of heavy transitive dependencies.

Re-exports§

pub use error::exit_code;
pub use error::Error;
pub use error::Result;

Modules§

build
Build / version metadata.
config
Cognitora configuration.
error
Workspace-wide error type.
etcd_keys
Cluster state key prefixes (etcd) used by router/agent/operator.
hash
Stable BLAKE3 prefix hashing used by the router and KV daemon.
ports
Default ports.
prefix
Prefix-aware lookup index used by the router.

Constants§

DEFAULT_CONFIG_PATH
Default config search path.
DEFAULT_UDS_DIR
Default UNIX domain socket directory used by the daemons.