state

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL