Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
ErrorHandler for errors. Use code = -1 to bypass writing header or trying to set Content-Type. Useful when headers are already sent.
Types ¶
type DNSRequest ¶
type DNSRequest struct { X json.Number `json:"x" example:"32.1"` Y json.Number `json:"y" example:"4.2"` Z json.Number `json:"z" example:"31.3"` Vel json.Number `json:"vel" example:"48.1"` }
DNSRequest of a galaxy sector location.
type DNSResponse ¶
type DNSResponse struct {
Loc float64 `json:"loc" example:"27372.229"`
}
DNSResponse with a galaxy sector location.
type ErrorResponse ¶
type ErrorResponse struct { Status int `json:"status" example:"404"` Message string `json:"message" example:"Not Found"` Errors string `json:"errors,omitempty" example:"reference not found"` }
ErrorResponse from the API.
Click to show internal directories.
Click to hide internal directories.