Skip to main content

Crate herolib_clients

Crate herolib_clients 

Source
Expand description

§HeroLib Clients Package

The herolib-clients package provides a unified interface for various client libraries including database clients, messaging clients, and API clients.

§Modules

  • redis: Redis client with connection management
  • postgres: PostgreSQL client with connection pooling
  • mqtt: MQTT messaging client for pub/sub
  • mycelium: Mycelium mesh network client
  • herodb: HeroDB modular database client
  • hetzner: Hetzner Cloud API client

§Example

use herolib_clients::{redis, postgres, mqtt};

// Use Redis client
redis::set("key", "value").unwrap();

// Use PostgreSQL client
postgres::execute("SELECT 1", &[]).unwrap();

Modules§

geoip
hero_embedder
Hero Embedder Client - JSON-RPC client for RAG operations.
herodb
SAL HeroDB Client
hetzner
Hetzner Robot API Client
mqtt
SAL MQTT Client - MQTT messaging client with reliable delivery support
mycelium
SAL Mycelium - Client interface for interacting with Mycelium node’s HTTP API
ntp
opencode_api
OpenCode API client with high-level builder pattern interface.
openrpc
OpenRPC Client Transport Layer
postgres
SAL PostgreSQL Client
redis
SAL Redis Client
rhai
Rhai integration for the HeroLib Clients package
vastai
Herovast - Rust client library for Vast.ai GPU rental API