daemon

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Run(ctx context.Context) error
}

Daemon is interface for process to run every node

func NewDaemon

func NewDaemon(cfg *rest.Config, bindAddress string) (Daemon, error)

NewDaemon create a daemon

type Runnable added in v1.0.0

type Runnable interface {
	// Run starts running the component. The component will stop running
	// when the channel is closed. Run blocks until the channel is closed or
	// an error occurs.
	Run(<-chan struct{})
}

Runnable allows a component to be started. It's very important that Start blocks until it's done running.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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