sigstat/specs_adapter/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub use specs_adapter_trait::*;
mod specs_adapter_trait;
pub mod statsig_http_specs_adapter;
pub mod statsig_customized_specs_adapter;
#[cfg(feature = "with_grpc")]
pub mod statsig_grpc_specs_adapter;

pub const DEFAULT_INIT_TIMEOUT_MS: u64 = 3000;

#[derive(Debug, Clone)]
pub struct SpecAdapterConfig {
  pub adapter_type: AdapterType,
  pub specs_url: String,
  pub init_timeout_ms: u64,
}

#[derive(Debug, Clone)]
pub enum AdapterType {
  NetworkGrpcWebsocket,
  NetworkHttp,
}