daemons

package
v0.0.0-...-b45a7ae Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package provides API/SPI for daemon definition, which are used by App.

Many people equate the word "daemon" with the word "demon", ... This is an egregious misunderstanding. "Daemon" is actually a much older form of "demon"; daemons have no particular bias towards good or evil, but rather serve to help define a person's character or personality. https://en.wikipedia.org/wiki/Daemon_%28computing%29#Etymology

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	// Name returns name of the Daemon
	Name() string

	// Start runs daemon in background, must not block until finish
	Start()

	// Shutdown gracefully shuts down the daemon
	Shutdown(ctx context.Context) error

	// Close immediately closes running daemon
	Close() error
}

Jump to

Keyboard shortcuts

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