goroutine

package
v1.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(r runtime.Runtime, id string, main FuncMain, setters ...runner.Option) runner.Runner

NewRunner creates runner.Runner that runs a service as goroutine.

Types

type FuncMain

type FuncMain func(ctx context.Context, r runtime.Runtime, logOutput io.Writer) error

FuncMain is a entrypoint into the service.

Service should abort and return when ctx is canceled.

Jump to

Keyboard shortcuts

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