runner

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 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 {
	Command(*commander.Command) error
}

A Runner represents the underlying service 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 Runner must implement either a runner.Listener or a runner.Starter as well as Command

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