goroutine

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(config runtime.Configurator, 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, config runtime.Configurator, 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