Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { DavisWeatherLink string // DavisWeatherLink is Weather Link hostname UpstreamHost string // UpstreamHost is upstream websocket hostname UpstreamEndpoint string // UpstreamEndpoint is upstream websocket endpoint Secure bool // Secure indicates to use secure websockets Passphrase string // Passphrase is first message sent to authenticate websocket WebsocketDelay *backoff.ExponentialBackOff // WebsocketDelay is exponential backoff for websocket WebsocketMutex *sync.Mutex // WebsocketMutex is for atomic websocket operations EngineRTLastReport time.Time // EngineRTLastReport is time of last real-time report EngineRTPort int // EngineRTPort is port of UDP broadcasts Event chan bool // Event is used by Report for notifying of new Reports Report *report.Report // Report represents the latest weather report }
State is the global program state.
Click to show internal directories.
Click to hide internal directories.