power

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventListener

func NewEventListener(cb func(Type)) (func(), error)

Types

type Type

type Type uint8
const (
	SUSPEND Type = iota
	RESUME
	RESUMEAUTOMATIC // Because the user is not present, most applications should do nothing.
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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