Documentation
¶
Index ¶
- func ApplyJSONPath(body []byte, jsonPath string) ([]byte, error)
- func DecodeOptions[T Options](options map[string]any) (T, error)
- func FieldBatches(fields []string, size int) [][]string
- func InspectionRequestKey(prefix string, req query.ProviderRequest, fields []string) (string, error)
- func OrderKeys(row query.Row, order query.Order) ([]any, error)
- func ResolveInlineURL(ctx context.Context, raw, connectionType string) (string, error)
- func RowsFromJSON(body []byte) ([]query.Row, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyJSONPath ¶ added in v0.1.101
ApplyJSONPath extracts data from a JSON body using a JSONPath expression. An expression matching nothing is an error.
func DecodeOptions ¶ added in v0.1.68
DecodeOptions decodes a request's options into T and validates them, so a profile's free-form options and a typed entry embedding T are read, and refused, the same way.
func FieldBatches ¶
FieldBatches splits fields into consecutive batches of at most size.
func InspectionRequestKey ¶
func InspectionRequestKey(prefix string, req query.ProviderRequest, fields []string) (string, error)
InspectionRequestKey is the column-inspection cache key for req over fields.
func OrderKeys ¶
OrderKeys reads a row's position in the declared order, which is what the next page resumes after.
func ResolveInlineURL ¶
ResolveInlineURL resolves an inline connection URL for connectionType; an empty raw URL resolves to empty.