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.
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()
Click to show internal directories.
Click to hide internal directories.