pub struct SlackConfig {
pub workspace: String,
pub token: String,
pub poll_seconds: u64,
pub dm_poll_seconds: u64,
pub thread_idle_days: u64,
pub stale_after_hours: u64,
}Expand description
One [[slack]] entry. The token is a credential, so it lives in
forge.toml rather than in the state DB beside the subscriptions.
Fields§
§workspace: StringTells workspaces apart in the MCP tools and the Inspector.
token: StringUser token, xoxp-....
poll_seconds: u64Sweep interval for this workspace, in seconds.
dm_poll_seconds: u64Sweep interval for the DM class, in seconds. It covers every DM in the
workspace rather than a list, so it costs one history read per DM per
pass whatever the subscription count - which is why it runs on its own,
slower clock beside poll_seconds.
thread_idle_days: u64A followed thread with nothing new for this many days is dropped: one that quiet is resolved in practice, whatever its parent’s age.
stale_after_hours: u64A block whose newest message is at or past this many hours old carries its age in its header. Zero turns the mark off; nothing is dropped.
Trait Implementations§
Source§impl Clone for SlackConfig
impl Clone for SlackConfig
Source§impl Debug for SlackConfig
Hand-written because the token must never be printed, the same reason
SlackClient writes its own.
impl Debug for SlackConfig
Hand-written because the token must never be printed, the same reason
SlackClient writes its own.