runner

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener interface {
	Listen(controller.Controller)
}

Listen must block, or the Service will close

type Runner

type Runner interface {
	Listener
	Starter
	Command(*commander.Command) error
}

A Runner represents the underlying service Services will register either Start or Listen in their code, which acts as an entrypoint On commands issued via the listener, Command() will be called with the payload Any errors encountered should be returned, and will be passed to the connecting client

type Starter

type Starter interface {
	Start(controller.Controller) error
}

Starter must not block when called, and return immediately with any errors

Jump to

Keyboard shortcuts

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