query

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PluginKind = "JsonQuery"

Variables

This section is empty.

Functions

func JsonQuery

func JsonQuery(options ...Option) query.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type Option

type Option func(plugin *Builder) error

func Datasource

func Datasource(datasourceName string) Option

func EndpointURL

func EndpointURL(url string) Option

func GET

func GET() Option

func JSONataExpression

func JSONataExpression(expr string) Option

func POST

func POST(body string) Option

func QueryParams

func QueryParams(params map[string]string) Option

type PluginSpec

type PluginSpec struct {
	Datasource        *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	EndpointURL       string               `json:"endpointUrl" yaml:"endpointUrl"`
	Method            string               `json:"method,omitempty" yaml:"method,omitempty"`
	QueryParams       map[string]string    `json:"queryParams,omitempty" yaml:"queryParams,omitempty"`
	Body              string               `json:"body,omitempty" yaml:"body,omitempty"`
	JSONataExpression string               `json:"jsonataExpression,omitempty" yaml:"jsonataExpression,omitempty"`
}

Jump to

Keyboard shortcuts

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