pause

package
v0.3.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 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