providerkit

package
v0.1.96 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

func DecodeOptions added in v0.1.68

func DecodeOptions[T Options](options map[string]any) (T, error)

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

func FieldBatches(fields []string, size int) [][]string

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

func OrderKeys(row query.Row, order query.Order) ([]any, error)

OrderKeys reads a row's position in the declared order, which is what the next page resumes after.

func ResolveInlineURL

func ResolveInlineURL(ctx context.Context, raw, connectionType string) (string, error)

ResolveInlineURL resolves an inline connection URL for connectionType; an empty raw URL resolves to empty.

Types

type Options added in v0.1.68

type Options interface {
	Validate() error
}

Options are a provider's exported options, which check themselves.

Jump to

Keyboard shortcuts

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