service

package
v2.11.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: GPL-3.0 Imports: 40 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStagedToken = errors.New("no staged token to confirm")

ErrNoStagedToken is returned when a confirm request is received but no token is currently staged by the launch guard.

Functions

This section is empty.

Types

type AutoDetector

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

func NewAutoDetector

func NewAutoDetector(_ *config.Instance) *AutoDetector

func (*AutoDetector) ClearFailedPath added in v2.9.0

func (ad *AutoDetector) ClearFailedPath(path string)

func (*AutoDetector) ClearPath added in v2.9.0

func (ad *AutoDetector) ClearPath(path string)

func (*AutoDetector) DetectReaders

func (ad *AutoDetector) DetectReaders(
	pl platforms.Platform,
	cfg *config.Instance,
	st *state.State,
	iq chan<- readers.Scan,
) error

type ServiceContext added in v2.10.0

type ServiceContext struct {
	Platform            platforms.Platform
	Config              *config.Instance
	State               *state.State
	DB                  *database.Database
	LaunchSoftwareQueue chan *tokens.Token
	PlaylistQueue       chan *playlists.Playlist
	ConfirmQueue        chan chan error
	BackgroundWG        *sync.WaitGroup
}

ServiceContext holds the shared dependencies threaded through all service-layer functions. Created once in Start() and passed by pointer.

type StartResult added in v2.10.0

type StartResult struct {
	Stop             func() error
	Done             <-chan struct{}
	RestartRequested func() bool
}

StartResult holds the return values from Start.

func Start

func Start(
	pl platforms.Platform,
	cfg *config.Instance,
) (*StartResult, error)

Directories

Path Synopsis
Package broker provides a simple in-process notification broker for broadcasting messages to multiple consumers without blocking.
Package broker provides a simple in-process notification broker for broadcasting messages to multiple consumers without blocking.
Package inbox provides a service for managing persistent system notifications.
Package inbox provides a service for managing persistent system notifications.

Jump to

Keyboard shortcuts

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