Documentation ¶
Index ¶
- Constants
- func GetGatewayStatus(mode string, historyHours int, serviceCodes ...string) (io.ReadCloser, error)
- func GetGatewayStatusCached(cacheFile string, forceDownload bool, serviceCodes ...string) (io.ReadCloser, error)
- type Gateway
- type GatewayChannel
- type GatewayStatus
- type RFC1123Time
- type VersionAdd
Constants ¶
View Source
const ( RootURL = "https://api.winlink.org" PathVersionAdd = "/version/add" PathGatewayStatus = "/gateway/status.json" // Issued December 2017 by the WDT for use with Pat AccessKey = "1880278F11684B358F36845615BD039A" )
Variables ¶
This section is empty.
Functions ¶
func GetGatewayStatus ¶ added in v0.5.1
GetGatewayStatus fetches the gateway status list returned by GatewayStatusUrl
mode can be any of [packet, pactor, winmor, robustpacket, allhf or anyall]. Empty is AnyAll. historyHours is the number of hours of history to include (maximum: 48). If < 1, then API default is used. serviceCodes defaults to "PUBLIC".
func GetGatewayStatusCached ¶ added in v0.5.1
Types ¶
type Gateway ¶ added in v0.5.1
type Gateway struct { Callsign string BaseCallsign string RequestedMode string Comments string LastStatus RFC1123Time Latitude float64 Longitude float64 Channels []GatewayChannel `json:"GatewayChannels"` }
type GatewayChannel ¶ added in v0.5.1
type GatewayStatus ¶ added in v0.5.1
type RFC1123Time ¶ added in v0.5.1
func (*RFC1123Time) UnmarshalJSON ¶ added in v0.5.1
func (t *RFC1123Time) UnmarshalJSON(b []byte) (err error)
type VersionAdd ¶
type VersionAdd struct { Callsign string `json:"callsign"` Program string `json:"program"` Version string `json:"version"` Comments string `json:"comments,omitempty"` }
func (VersionAdd) Post ¶
func (v VersionAdd) Post() error
Click to show internal directories.
Click to hide internal directories.