handler

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	Up(ctx context.Context) error
	Down(ctx context.Context) error
	Status() (internal.StatusType, error)
}

type SleepHandler

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

func New

func New(agent Agent) *SleepHandler

func (*SleepHandler) HandleSleep

func (s *SleepHandler) HandleSleep(ctx context.Context) error

func (*SleepHandler) HandleWakeUp

func (s *SleepHandler) HandleWakeUp(ctx context.Context) error

Jump to

Keyboard shortcuts

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