endpoints/global
Types
pub type Announcement {
Announcement(title: String, body: String)
}
Constructors
-
Announcement(title: String, body: String)
pub type ChartLeaderboardEntry {
ChartLeaderboardEntry(agent_symbol: String, chart_count: Int)
}
Constructors
-
ChartLeaderboardEntry(agent_symbol: String, chart_count: Int)
pub type CreditLeaderboardEntry {
CreditLeaderboardEntry(agent_symbol: String, credits: Int)
}
Constructors
-
CreditLeaderboardEntry(agent_symbol: String, credits: Int)
pub type ErrorCode {
ErrorCode(code: Int, name: String)
}
Constructors
-
ErrorCode(code: Int, name: String)
pub type GetServerStatusResponse {
GetServerStatusResponse(
status: String,
version: String,
reset_date: String,
description: String,
stats: Stats,
health: Health,
leaderboards: Leaderboards,
server_resets: ServerResets,
announcements: List(Announcement),
links: List(Link),
)
}
Constructors
-
GetServerStatusResponse( status: String, version: String, reset_date: String, description: String, stats: Stats, health: Health, leaderboards: Leaderboards, server_resets: ServerResets, announcements: List(Announcement), links: List(Link), )
pub type Health {
Health(last_market_update: option.Option(String))
}
Constructors
-
Health(last_market_update: option.Option(String))
pub type Leaderboards {
Leaderboards(
most_credits: List(CreditLeaderboardEntry),
most_submitted_charts: List(ChartLeaderboardEntry),
)
}
Constructors
-
Leaderboards( most_credits: List(CreditLeaderboardEntry), most_submitted_charts: List(ChartLeaderboardEntry), )
pub type Link {
Link(name: String, url: String)
}
Constructors
-
Link(name: String, url: String)
pub type ServerResets {
ServerResets(next: String, frequency: String)
}
Constructors
-
ServerResets(next: String, frequency: String)
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(GetServerStatusResponse, api.ApiError)
pub fn list_error_codes(
,
) -> Result(ListErrorCodesResponse, api.ApiError)