acpi

package
v0.4.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PowerButtonEvent is the ACPI event name associated with the power off
	// button.
	PowerButtonEvent = "button/power"
)

Variables

This section is empty.

Functions

func NewHandlerTask

func NewHandlerTask() phase.Task

NewHandlerTask initializes and returns a ACPI handler task.

Types

type Handler

type Handler struct{}

Handler represents the ACPI handler task.

func (*Handler) TaskFunc added in v0.3.0

func (task *Handler) TaskFunc(mode runtime.Mode) phase.TaskFunc

TaskFunc returns the runtime function.

Jump to

Keyboard shortcuts

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