sleep

package
v0.64.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDetector

func NewDetector() (detector, error)

Types

type EventType

type EventType int
var (
	EventTypeUnknown EventType = 0
	EventTypeSleep   EventType = 1
	EventTypeWakeUp  EventType = 2
)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New() (*Service, error)

func (*Service) Deregister

func (s *Service) Deregister() error

func (*Service) Register

func (s *Service) Register(callback func(eventType EventType)) error

Jump to

Keyboard shortcuts

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