agent

package
v0.0.0-...-1e40bc2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

README

diode agent

Documentation

Index

Constants

View Source
const (
	Kind = "discovery"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	Start(ctx context.Context, cancelFunc context.CancelFunc) error
	Stop(ctx context.Context)
	RestartAll(ctx context.Context, reason string) error
	RestartBackend(ctx context.Context, backend string, reason string) error
}

func New

func New(logger *zap.Logger, c config.Config) (Agent, error)

type ReturnValue

type ReturnValue struct {
	Message string `json:"message"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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