signalutil

package
v0.0.0-...-ee57881 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, logger *log.Logger, daemons ...Daemon)

Types

type Daemon

type Daemon interface {
	DisplayName() string
	// Start blocks.
	Start(ctx context.Context, logger *log.Logger)
	// Stop stops.
	Stop(ctx context.Context, logger *log.Logger) error
}

Daemon is something that runs indefinitely.

Jump to

Keyboard shortcuts

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