concurrent

package
v0.243.0 Latest Latest
Warning

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

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

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