meta

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormParamsAttributesSchema, _ = gohcl.ImpliedBodySchema(&FormParamsAttributes{})
View Source
var LogFieldsAttributeSchema, _ = gohcl.ImpliedBodySchema(&LogFieldsAttribute{})
View Source
var QueryParamsAttributesSchema, _ = gohcl.ImpliedBodySchema(&QueryParamsAttributes{})
View Source
var RequestHeadersAttributesSchema, _ = gohcl.ImpliedBodySchema(&RequestHeadersAttributes{})
View Source
var ResponseHeadersAttributesSchema, _ = gohcl.ImpliedBodySchema(&ResponseHeadersAttributes{})

Functions

func MergeSchemas

func MergeSchemas(schema *hcl.BodySchema, schemas ...*hcl.BodySchema) *hcl.BodySchema

Types

type FormParamsAttributes

type FormParamsAttributes struct {
	// Form Params
	AddFormParams map[string]cty.Value `hcl:"add_form_params,optional" docs:"Key/value pairs to add form parameters to the upstream request body."`
	DelFormParams map[string]cty.Value `hcl:"remove_form_params,optional" docs:"List of names to remove form parameters from the upstream request body."`
	SetFormParams map[string]cty.Value `hcl:"set_form_params,optional" docs:"Key/value pairs to set query parameters in the upstream request URL."`
}

type LogFieldsAttribute

type LogFieldsAttribute struct {
	LogFields map[string]hcl.Expression `` /* 137-byte string literal not displayed */
}

type QueryParamsAttributes

type QueryParamsAttributes struct {
	// Query Params
	AddQueryParams map[string]cty.Value `hcl:"add_query_params,optional" docs:"Key/value pairs to add query parameters to the upstream request URL."`
	DelQueryParams []string             `hcl:"remove_query_params,optional" docs:"List of names to remove query parameters from the upstream request URL."`
	SetQueryParams map[string]cty.Value `hcl:"set_query_params,optional" docs:"Key/value pairs to set query parameters in the upstream request URL."`
}

type RequestHeadersAttributes

type RequestHeadersAttributes struct {
	// Request Header Modifiers
	AddRequestHeaders map[string]string `hcl:"add_request_headers,optional" docs:"Key/value pairs to add as request headers in the upstream request."`
	DelRequestHeaders []string          `hcl:"remove_request_headers,optional" docs:"List of names to remove headers from the upstream request."`
	SetRequestHeaders map[string]string `hcl:"set_request_headers,optional" docs:"Key/value pairs to set as request headers in the upstream request."`
}

type ResponseHeadersAttributes

type ResponseHeadersAttributes struct {
	// Response Header Modifiers
	AddResponseHeaders map[string]string `hcl:"add_response_headers,optional" docs:"Key/value pairs to add as response headers in the client response."`
	DelResponseHeaders []string          `hcl:"remove_response_headers,optional" docs:"List of names to remove headers from the client response."`
	SetResponseHeaders map[string]string `hcl:"set_response_headers,optional" docs:"Key/value pairs to set as response headers in the client response."`
}

Jump to

Keyboard shortcuts

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