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
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
Click to show internal directories.
Click to hide internal directories.