Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVoidContainer ¶
func NewVoidContainer( apps []VoidApp, opts ...VoidOption) scene.Scene
NewVoidContainer creates a container for background-style delivery apps. Void apps should start background work in Run and return quickly.
Types ¶
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.