instance

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *executor.Service

Get returns the singleton (may be nil when Init has not been called or failed).

func Init

func Init(ctx context.Context, cfgPath string, opts ...executor.Option) error

Init builds the singleton using the supplied executor options. cfgPath may point to a YAML/JSON document describing executor.Config – when non-empty it is loaded and passed through executor.WithConfig(). Calling Init more than once is safe; only the first call creates the instance, subsequent calls return the original error (if any).

func Shutdown

func Shutdown(ctx context.Context)

Shutdown gracefully terminates the singleton runtime (if created).

Types

This section is empty.

Jump to

Keyboard shortcuts

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