Documentation
¶
Index ¶
- Constants
- func ContextWithDefaultManager(ctx context.Context) context.Contextdeprecated
- func ContextWithManager(ctx context.Context, manager Manager) context.Contextdeprecated
- func RegisterTicker(manager Manager, ticker *time.Ticker, duration time.Duration, resume func()) *list.Element[Callback]
- func WithDefaultManager(ctx context.Context) context.Context
- type Callback
- type Manager
Constants ¶
View Source
const ( EventDevicePaused int = iota EventDeviceWake EventNetworkPause EventNetworkWake )
Variables ¶
This section is empty.
Functions ¶
func ContextWithDefaultManager
deprecated
func RegisterTicker ¶ added in v0.6.6
Types ¶
type Manager ¶
type Manager interface {
DevicePause()
DeviceWake()
NetworkPause()
NetworkWake()
IsDevicePaused() bool
IsNetworkPaused() bool
IsPaused() bool
WaitActive()
RegisterCallback(callback Callback) *list.Element[Callback]
UnregisterCallback(element *list.Element[Callback])
}
func ManagerFromContext
deprecated
Click to show internal directories.
Click to hide internal directories.