Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIssLocation ¶
Get the current location of the International Space Station You can define a custom result to unmarshal the response into.
GET /iss-now.json
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client conforms to the OpenAPI3 specification for this service.
func (*Client) GetIssLocation ¶
func (c *Client) GetIssLocation(ctx context.Context) (*ISSLocation, error)
Get the current location of the International Space Station
GET /iss-now.json
func (*Client) GetPeopleInSpace ¶
func (c *Client) GetPeopleInSpace(ctx context.Context) (*PeopleInSpace, error)
Get a list of astronauts currently in space
GET /astros.json
type ISSLocation ¶
type ISSLocation struct { Timestamp int `json:"timestamp,omitzero"` IssPosition ISSPosition `json:"iss_position"` Message string `json:"message,omitzero"` }
ISSLocation defines a model
type ISSPosition ¶
type ISSPosition struct { Longitude string `json:"longitude,omitzero"` Latitude string `json:"latitude,omitzero"` }
ISSPosition defines a model
type PeopleInSpace ¶
type PeopleInSpace struct { People People `json:"people,omitempty"` Number int `json:"number,omitzero"` Message string `json:"message,omitzero"` }
PeopleInSpace defines a model
Click to show internal directories.
Click to hide internal directories.