script

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptApi added in v0.13.0

type ScriptApi interface {
	// Run must be the service function where things happen. It is executed
	// only once and the service terminates.
	//
	// Services should avoid blocking this function since there are other
	// type of services for this purpose.
	Run(ctx context.Context) error

	// Cleanup must clean or finish anything that was initialized or any resource
	// that need to be released.
	Cleanup(ctx context.Context) error
}

ScriptApi corresponds to the API that a script service must implement in its main structure.

Jump to

Keyboard shortcuts

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