delta

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolveGraphQLInput

type ResolveGraphQLInput struct {
	Base, Delta               mgraphql.GraphQL
	BaseHeaders, DeltaHeaders []mgraphql.GraphQLHeader
	BaseAsserts, DeltaAsserts []mgraphql.GraphQLAssert
}

ResolveGraphQLInput holds the base and delta information required for GraphQL resolution.

type ResolveGraphQLOutput

type ResolveGraphQLOutput struct {
	Resolved        mgraphql.GraphQL
	ResolvedHeaders []mgraphql.GraphQLHeader
	ResolvedAsserts []mgraphql.GraphQLAssert
}

ResolveGraphQLOutput holds the fully resolved GraphQL request.

func ResolveGraphQL

func ResolveGraphQL(input ResolveGraphQLInput) ResolveGraphQLOutput

ResolveGraphQL merges a base GraphQL request with a delta, applying overrides based on the Delta System architecture (Overlay Pattern).

type ResolveHTTPInput

type ResolveHTTPInput struct {
	Base, Delta               mhttp.HTTP
	BaseQueries, DeltaQueries []mhttp.HTTPSearchParam
	BaseHeaders, DeltaHeaders []mhttp.HTTPHeader

	// Bodies
	BaseRawBody, DeltaRawBody               mhttp.HTTPBodyRaw
	BaseFormBody, DeltaFormBody             []mhttp.HTTPBodyForm
	BaseUrlEncodedBody, DeltaUrlEncodedBody []mhttp.HTTPBodyUrlencoded
	BaseAsserts, DeltaAsserts               []mhttp.HTTPAssert
}

ResolveHTTPInput holds the base and delta information required for resolution. This replaces the legacy MergeExamplesInput.

type ResolveHTTPOutput

type ResolveHTTPOutput struct {
	Resolved               mhttp.HTTP
	ResolvedQueries        []mhttp.HTTPSearchParam
	ResolvedHeaders        []mhttp.HTTPHeader
	ResolvedRawBody        mhttp.HTTPBodyRaw
	ResolvedFormBody       []mhttp.HTTPBodyForm
	ResolvedUrlEncodedBody []mhttp.HTTPBodyUrlencoded
	ResolvedAsserts        []mhttp.HTTPAssert
}

ResolveHTTPOutput holds the fully resolved HTTP request. This replaces the legacy MergeExamplesOutput.

func ResolveHTTP

func ResolveHTTP(input ResolveHTTPInput) ResolveHTTPOutput

ResolveHTTP merges a base request with a delta request, applying overrides based on the Delta System architecture (Overlay Pattern).

Jump to

Keyboard shortcuts

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