winpowrprof

package
v0.6.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const (
	EVENT_SUSPEND = iota
	EVENT_RESUME
	EVENT_RESUME_AUTOMATIC // Because the user is not present, most applications should do nothing.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCallback added in v0.5.0

type EventCallback = func(event int)

type EventListener

type EventListener interface {
	Start() error
	Close() error
}

func NewEventListener

func NewEventListener(callback EventCallback) (EventListener, error)

Jump to

Keyboard shortcuts

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