void

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.4.0

func NewFactory(options ...VoidOption) scene.SceneDefinition

NewFactory declares a Void scene for background-style delivery apps. Void apps should start background work in Run and return quickly.

Types

type Factory added in v0.4.0

type Factory struct {
	Options []VoidOption
}

Factory builds a Void scene from background applications.

func (Factory) Build added in v0.4.0

func (f Factory) Build(scope *registry.Scope, apps []VoidApp) (scene.Scene, error)

type VoidApp

type VoidApp interface {
	scene.Application
	// Run starts the app's background behavior.
	// It should not block; long-running work should be started in background goroutines.
	Run() error
	// Stop asks the app to stop its background behavior.
	// Implementations should respect ctx cancellation when possible.
	Stop(ctx context.Context) error
}

type VoidOption

type VoidOption func()

Jump to

Keyboard shortcuts

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