reporter

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constructor

type Constructor func(
	le *logrus.Entry,
	bus bus.Bus,
	store *store.Store,
) (Reporter, error)

Constructor constructs a reporter with common parameters.

type Controller

type Controller interface {
	// Controller is the controllerbus controller interface.
	controller.Controller

	// GetReporter returns the controlled reporter.
	// This may wait for the reporter to be ready.
	GetReporter(ctx context.Context) (Reporter, error)
}

Controller is a reporter controller.

type Reporter

type Reporter interface {
	// Handler handles directives.
	directive.Handler

	// Execute executes the reporter's inner controller.
	// Entities should be added or removed from the store.
	Execute(ctx context.Context) error
}

Reporter creates and handles directives, exposing entities to the graph.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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