Documentation
¶
Index ¶
- Constants
- func DevicePause()
- func DeviceWake()
- func IsDevicePaused() bool
- func IsNetworkPaused() bool
- func NetworkPause()
- func NetworkWake()
- func Outstanding() int64
- func RegisterCallback(callback Callback) func()
- func RegisterTicker(ticker *time.Ticker, duration time.Duration, resume func()) func()
- func RegisterTickerResumingOnDeviceWake(ticker *time.Ticker, next func() time.Duration, resume func()) (stop func(), tick func(interval time.Duration) bool)
- type Callback
Constants ¶
View Source
const ( EventDevicePaused = singpause.EventDevicePaused EventDeviceWake = singpause.EventDeviceWake EventNetworkPause = singpause.EventNetworkPause EventNetworkWake = singpause.EventNetworkWake )
Variables ¶
This section is empty.
Functions ¶
func DevicePause ¶
func DevicePause()
func DeviceWake ¶
func DeviceWake()
func IsDevicePaused ¶
func IsDevicePaused() bool
func IsNetworkPaused ¶
func IsNetworkPaused() bool
func NetworkPause ¶
func NetworkPause()
func NetworkWake ¶
func NetworkWake()
func Outstanding ¶
func Outstanding() int64
func RegisterCallback ¶
func RegisterCallback(callback Callback) func()
func RegisterTicker ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.