concurrent

package
v0.260.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryData

QueryData executes all queries from a request concurrently, using the provided function to execute each query. The concurrency limit is set by the limit parameter. A negative limit means no limit.

Types

type Query

type Query struct {
	PluginContext backend.PluginContext
	Headers       http.Header
	DataQuery     backend.DataQuery
}

Query is a single query to be executed concurrently Index is the index of the query in the request PluginContext is the plugin context Headers are the HTTP headers of the request DataQuery is the query to be executed

type QueryDataFunc

type QueryDataFunc func(ctx context.Context, query Query) (res backend.DataResponse)

QueryDataFunc is the function that plugins need to define to execute a single query

Jump to

Keyboard shortcuts

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