pub struct GatewayConfig {
pub check_interval_hours: u64,
pub api_session_ttl_hours: u64,
}Expand description
[gateway]: the one long-lived process that keeps the whole thing running.
Fields§
§check_interval_hours: u64How often the gateway runs the update check and logs what it found. Log-only: a version
change is a decision, and the gateway is not the place to make it. 0 turns the check
off.
api_session_ttl_hours: u64How long a session created by POST /v1/chat/completions is kept. The loop stores every
turn, so each API call leaves one behind; they are tagged api and swept after this many
hours, so a script polling the endpoint cannot fill the store. 0 keeps them forever.
Trait Implementations§
Source§impl Clone for GatewayConfig
impl Clone for GatewayConfig
Source§impl Debug for GatewayConfig
impl Debug for GatewayConfig
Source§impl Default for GatewayConfig
impl Default for GatewayConfig
Source§impl<'de> Deserialize<'de> for GatewayConfigwhere
GatewayConfig: Default,
impl<'de> Deserialize<'de> for GatewayConfigwhere
GatewayConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GatewayConfig
impl PartialEq for GatewayConfig
Source§impl Serialize for GatewayConfig
impl Serialize for GatewayConfig
impl StructuralPartialEq for GatewayConfig
Auto Trait Implementations§
impl Forget for GatewayConfig
impl Freeze for GatewayConfig
impl Move for GatewayConfig
impl RefUnwindSafe for GatewayConfig
impl Send for GatewayConfig
impl Sync for GatewayConfig
impl Unpin for GatewayConfig
impl UnsafeUnpin for GatewayConfig
impl UnwindSafe for GatewayConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more