goroutine

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MPL-2.0 Imports: 9 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