#[non_exhaustive]pub struct DaemonConfig {Show 13 fields
pub kafka: Option<KafkaConfig>,
pub bind: String,
pub max_concurrent_tasks: usize,
pub metrics: Option<MetricsConfig>,
pub database_url: Option<String>,
pub auth: Option<AuthConfig>,
pub memory: DaemonMemoryConfig,
pub audit: DaemonAuditConfig,
pub idempotency: IdempotencyConfig,
pub persona_mentions: Vec<PersonaMentionsConfig>,
pub persona_posts: Vec<PersonaPostsConfig>,
pub persona_quotes: Vec<PersonaQuotesConfig>,
pub persona_blog: Option<PersonaBlogConfig>,
}Expand description
Daemon mode configuration for runtime execution.
When kafka is absent, the daemon runs in HTTP-only mode: it serves
/v1/tasks/execute for cloud-delegated execution but does not consume
Kafka commands or produce events. This is the recommended mode for the
3-tier architecture where Kafka lives in the gateway, not the runtime.
Input-source fields (schedules, sensors, ws, telegram, heartbit_pulse, owner_emails, mcp_server) have been moved to the gateway crate as part of the 3-tier architecture refactoring. The type definitions are kept here so they can be re-used by the gateway.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kafka: Option<KafkaConfig>Kafka transport configuration. Omit for in-process channel mode.
bind: StringHTTP bind address (e.g. 0.0.0.0:8080).
max_concurrent_tasks: usizeMaximum concurrently-executing tasks across all consumers.
metrics: Option<MetricsConfig>Prometheus metrics configuration. Metrics are enabled by default.
database_url: Option<String>PostgreSQL URL for durable task persistence. When absent, tasks are stored in-memory (lost on restart).
auth: Option<AuthConfig>HTTP API authentication configuration.
memory: DaemonMemoryConfigMemory access control configuration.
audit: DaemonAuditConfigAudit log retention configuration.
idempotency: IdempotencyConfigIdempotency-key TTL sweep configuration.
persona_mentions: Vec<PersonaMentionsConfig>Per-persona X/Twitter mention-poll configurations.
Each entry launches a MentionPollScheduler that fires
DaemonCommand::MentionPoll on its configured interval.
persona_posts: Vec<PersonaPostsConfig>Per-persona proactive-posting configuration. One entry per persona that has proactive posting enabled.
persona_quotes: Vec<PersonaQuotesConfig>Per-persona quote-tweet configurations. Each entry launches a
PersonaQuoteScheduler.
persona_blog: Option<PersonaBlogConfig>Personal blog configuration. Single block (one blog per daemon). When absent, the daemon does not spawn a blog scheduler.
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more