endpoints/global

Types

pub type Announcement {
  Announcement(title: String, body: String)
}

Constructors

  • Announcement(title: String, body: String)
pub type ChartLeaderboardEntry {
  ChartLeaderboardEntry(
    agent_symbol: agent_symbol.AgentSymbol,
    chart_count: Int,
  )
}

Constructors

pub type CreditLeaderboardEntry {
  CreditLeaderboardEntry(
    agent_symbol: agent_symbol.AgentSymbol,
    credits: Int,
  )
}

Constructors

pub type ErrorCode {
  ErrorCode(code: Int, name: String)
}

Constructors

  • ErrorCode(code: Int, name: String)
pub type Health {
  Health(last_market_update: option.Option(birl.Time))
}

Constructors

pub type Leaderboards {
  Leaderboards(
    most_credits: List(CreditLeaderboardEntry),
    most_submitted_charts: List(ChartLeaderboardEntry),
  )
}

Constructors

pub type Link {
  Link(name: String, url: uri.Uri)
}

Constructors

pub type ServerResets {
  ServerResets(next: birl.Time, frequency: String)
}

Constructors

  • ServerResets(next: birl.Time, frequency: String)
pub type ServerStatus {
  ServerStatus(
    status: String,
    version: String,
    reset_date: birl.Time,
    description: String,
    stats: Stats,
    health: Health,
    leaderboards: Leaderboards,
    server_resets: ServerResets,
    announcements: List(Announcement),
    links: List(Link),
  )
}

Constructors

pub type Stats {
  Stats(
    accounts: option.Option(Int),
    agents: Int,
    ships: Int,
    systems: Int,
    waypoints: Int,
  )
}

Constructors

  • Stats(
      accounts: option.Option(Int),
      agents: Int,
      ships: Int,
      systems: Int,
      waypoints: Int,
    )

Values

pub fn get_server_status() -> Result(ServerStatus, api.ApiError)
pub fn list_error_codes(
  ,
) -> Result(List(ErrorCode), api.ApiError)
Search Document