api

package
v1.25.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterSpecifier

type ClusterSpecifier interface {
	// Cluster return the cluster name that will be used in the Envoy side,
	// Envoy will use the default_cluster in the plugin config when return an empty string, or panic happens.
	Cluster(RequestHeaderMap) string
}

type ClusterSpecifierConfigFactory

type ClusterSpecifierConfigFactory func(any *anypb.Any) ClusterSpecifier

type ClusterSpecifierConfigParser

type ClusterSpecifierConfigParser interface {
	Parse(any *anypb.Any) interface{}
}

type ClusterSpecifierFactory

type ClusterSpecifierFactory func(config interface{}) ClusterSpecifier

type HttpCAPI

type HttpCAPI interface {
	HttpGetHeader(headerPtr uint64, key *string, value *string) bool
	HttpLogError(pluginPtr uint64, msg *string)
}

type RequestHeaderMap

type RequestHeaderMap interface {
	// Get value of key
	// If multiple values associated with this key, first one will be returned.
	Get(key string) (string, bool)
}

Jump to

Keyboard shortcuts

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