ezconfig

Types

API rate limit configuration

pub type ApiConfig {
  ApiConfig(rps: Int, max_concurrent: Int, notes: String)
}

Constructors

  • ApiConfig(rps: Int, max_concurrent: Int, notes: String)

Values

pub fn get_config(domain: String) -> option.Option(ApiConfig)

Get configuration for a specific API domain

pub fn get_max_concurrent(domain: String) -> option.Option(Int)

Get max_concurrent for a domain, or None if not configured

pub fn get_rps(domain: String) -> option.Option(Int)

Get RPS for a domain, or None if not configured

pub fn has_config(domain: String) -> Bool

Check if a domain has a configuration

pub fn list_domains() -> List(String)

Get all configured domains

Search Document