Documentation ¶
Index ¶
Constants ¶
View Source
const ( EndpointEDSM = "https://www.edsm.net/" EndpointStatus = EndpointEDSM + "api-status-v1/elite-server" EndpointAPI = EndpointEDSM + "api-v1/" EndpointSystem = EndpointAPI + "system" EndpointSystems = EndpointAPI + "systems" EndpointDistances = EndpointAPI + "distances" EndpointSphereSystems = EndpointAPI + "sphere-systems" EndpointSubmitDistances = EndpointAPI + "submit-distances" )
Known endpoints for EDSM
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
Debug bool
}
APIClient EDSM api client.
func NewAPIClient ¶
NewAPIClient created an instance of APIClient debug: tells APIClient if it should be running in debug mode.
func (*APIClient) GetSphereSystems ¶
func (client *APIClient) GetSphereSystems(systemName string, radius float64) (systems []System, err error)
GetSphereSystems gets all the systems within a specified radius of the system provided. systemName: the name of the system to use as original. radius: float64 radius of the search.
type Coordinates ¶
Coordinates Simple representation of a coord object as detailed by edsm
type System ¶
type System struct { ID string `json:"id"` Name string `json:"name"` Coords *Coordinates `json:"coords"` }
System Simple representation of a system object as detailed by edsm
Click to show internal directories.
Click to hide internal directories.