Skip to main content

Crate ilink_hub

Crate ilink_hub 

Source

Re-exports§

pub use error::HubError;
pub use hub::queue::InMemoryQueue;
pub use hub::queue::MessageQueue;
pub use hub::HubState;
pub use ilink::QrLoginUiEvent;
pub use runtime::serve::run_serve;
pub use runtime::serve::ServeOptions;

Modules§

bridge
CLI bridge: connect to iLink Hub as a virtual-token backend and run a local command per text message. Supports single-profile YAML (flat command / args) or multi-profile YAML (profiles + routing: fixed or prefix).
client
Helpers for AI backends connecting to a local iLink Hub instance.
error
hub
Hub core: shared state, the inbound message dispatcher, and hub-command handling.
ilink
mcp
MCP (Model Context Protocol) server — Streamable HTTP transport.
metrics
paths
Canonical user data paths under ~/.ilink-hub/.
relay
runtime
Long-running Hub process helpers (shared by CLI and future desktop shell).
server
store
Database persistence layer. Uses sqlx with runtime driver selection via DATABASE_URL: sqlite:~/.ilink-hub/ilink-hub.db → SQLite (default, file created if missing) postgres://user:pass@host/db → PostgreSQL mysql://user:pass@host/db → MySQL

Functions§

redact_database_url
Redact credentials in a database URL for startup logs.
redact_token
Redact a virtual token for logging: show only the first 8 characters followed by . This lets operators correlate log lines without exposing the full credential. Safe against UTF-8 byte boundary panics.