pause

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-2.0 Imports: 3 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithDefaultManager

func ContextWithDefaultManager(ctx context.Context) context.Context

func ContextWithManager

func ContextWithManager(ctx context.Context, manager Manager) context.Context

Types

type Manager

type Manager interface {
	DevicePause()
	DeviceWake()
	DevicePauseChan() <-chan struct{}
	NetworkPause()
	NetworkWake()
	NetworkPauseChan() <-chan struct{}
	IsPaused() bool
	WaitActive()
}

func ManagerFromContext

func ManagerFromContext(ctx context.Context) Manager

func NewDefaultManager

func NewDefaultManager(ctx context.Context) Manager

Jump to

Keyboard shortcuts

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