Documentation
¶
Index ¶
Constants ¶
View Source
const (
CapabilityFeedMETARs uint = 1 << 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
Type string `json:"type"`
Message string `json:"message"`
Details map[string]any `json:"details"`
}
APIError represents a single error present in an APIErrorResponse
type APIErrorResponse ¶
APIErrorResponse represents an error response following the error structure of the data server
func (*APIErrorResponse) Error ¶
func (resp *APIErrorResponse) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the data API client to use for feeding
func (*Client) FeedMETARs ¶
FeedMETARs feeds METARs into the data server
func (*Client) FeedMETARsRelaxed ¶
FeedMETARsRelaxed works the same as FeedMETARs with the exception that it simply skips METARs with an invalid format
func (*Client) GetKeyInfo ¶
GetKeyInfo retrieves the KeyInfo about the currently used API key
Click to show internal directories.
Click to hide internal directories.