Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSystemBodies ¶
func GetSystemBodies(id64 int64) <-chan SystemResult
GetSystemBodies retrieves body information from EDSM.net
func GetSystemValue ¶
func GetSystemValue(id64 int64) <-chan SystemResult
GetSystemValue returns information about the system value
Types ¶
type Body ¶
type Body struct {
ID64 uint64
BodyID int64
Name string
IsMainStar bool
IsScoopable bool
Type string
SubType string
Gravity float64
Volcanism string
IsLandable bool
Materials map[string]float64
}
Body parses information about a single body
func (Body) MaterialsSorted ¶
MaterialsSorted returns the materials of this body in descending sorted order
type System ¶
type System struct {
ID64 uint64
Name string
BodyCount int
EstimatedValue int64
EstimatedValueMapped int64
Bodies []Body
ValuableBodies []ValuableBody
}
System parses the root object response from the api-system-v1 apis
type SystemResult ¶
SystemResult bundles the result of fetching system information with the optional error
type ValuableBody ¶
ValuableBody holds information about the value of bodies
func (ValuableBody) ShortName ¶
func (b ValuableBody) ShortName(s System) string
ShortName returns the shortened name of the body, without the system name prefix
Click to show internal directories.
Click to hide internal directories.