distributed

package
v4.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorRunner

type ErrorRunner struct {
	// contains filtered or unexported fields
}

ErrorRunner is used to propagate an error all the way to the aggregation routine

func NewErrorRunner

func NewErrorRunner(err error) *ErrorRunner

NewErrorRunner creates a new error runner

func (*ErrorRunner) Run

Run doesn't execute anything but returns the error that was passed to the constructor

type Querier

type Querier interface {
	// Query runs the distributed query on the provided hosts and returns a channel from
	// which the results can be read. In addition, keepalives are sent via a second channel.
	// It is the responsibility of the implementing type to close the channels.
	// This may become a requirement through the interface definitions in future versions.
	Query(ctx context.Context, queryHosts hosts.Hosts, args *query.Args) (<-chan *results.Result, <-chan struct{})
}

Querier provides a general interface for all query executors

type QuerierAnyable

type QuerierAnyable interface {
	// AllHosts returns a list of all hosts / targets available to the Querier
	AllHosts() (hosts.Hosts, error)
}

QuerierAnyable extends a "common" Querier with the support to retrieve a list of all hosts / targets available to the Querier

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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