Help us shape the future of Go! Take the 2026 Go Developer Survey

devices

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled    bool
	MonitorUSB bool // When true, monitor USB hotplug (Linux only)

}

type EventSource

type EventSource = events.EventSource

type Service

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

func NewService

func NewService(cfg Config, stateMgr *state.Manager) *Service

func (*Service) SetBus

func (s *Service) SetBus(msgBus *bus.MessageBus)

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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