restart

package
v0.0.0-...-551a65d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Restartable

type Restartable interface {
	Startable
	Stoppable
}

Restartable represents a startable and stopable object

type Startable

type Startable interface {
	Start()
}

Startable represents a startable object

type Starter

type Starter interface {
	Startable
	Add(components ...Startable)
}

Starter starts a group of startable objects from a data pipeline

func NewStarter

func NewStarter(components ...Startable) Starter

NewStarter returns a new starter

type Stoppable

type Stoppable interface {
	Stop()
}

Stoppable represents a stoppable object

type Stopper

type Stopper interface {
	Stoppable
	Add(components ...Stoppable)
}

Stopper stops a group of stoppable objects from a data pipeline

func NewParallelStopper

func NewParallelStopper(components ...Stoppable) Stopper

NewParallelStopper returns a new parallelStopper

func NewSerialStopper

func NewSerialStopper(components ...Stoppable) Stopper

NewSerialStopper returns a new serialGroup

Jump to

Keyboard shortcuts

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