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
-
ChartLeaderboardEntry( agent_symbol: agent_symbol.AgentSymbol, chart_count: Int, )
pub type CreditLeaderboardEntry {
CreditLeaderboardEntry(
agent_symbol: agent_symbol.AgentSymbol,
credits: Int,
)
}
Constructors
-
CreditLeaderboardEntry( agent_symbol: agent_symbol.AgentSymbol, credits: Int, )
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
-
Health(last_market_update: option.Option(birl.Time))
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 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
-
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), )
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)