mainlib

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, args []string, stderr io.Writer) (err error)

Main is a main function for the external processor exposed for allowing users to build their own external processor.

* ctx is the context for the external processor. * args are the command line arguments passed to the external processor without the program name. * stderr is the writer to use for standard error where the external processor will output logs.

This returns an error if the external processor fails to start, or nil otherwise. When the `ctx` is canceled, the function will return nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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