dubbo_proxyv3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProtocolType_name = map[int32]string{
		0: "Dubbo",
	}
	ProtocolType_value = map[string]int32{
		"Dubbo": 0,
	}
)

Enum value maps for ProtocolType.

View Source
var (
	SerializationType_name = map[int32]string{
		0: "Hessian2",
	}
	SerializationType_value = map[string]int32{
		"Hessian2": 0,
	}
)

Enum value maps for SerializationType.

View Source
var File_envoy_extensions_filters_network_dubbo_proxy_v3_dubbo_proxy_proto protoreflect.FileDescriptor
View Source
var File_envoy_extensions_filters_network_dubbo_proxy_v3_route_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Drds added in v0.10.2

type Drds struct {

	// Configuration source specifier.
	// In case of “api_config_source“ only aggregated “api_type“ is supported.
	ConfigSource *v3.ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource,proto3" json:"config_source,omitempty"`
	// The name of the multiple route configuration. This allows to use different multiple route
	// configurations. Tells which multiple route configuration should be fetched from the configuration
	// source. Leave unspecified is also valid and means the unnamed multiple route configuration.
	RouteConfigName string `protobuf:"bytes,2,opt,name=route_config_name,json=routeConfigName,proto3" json:"route_config_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Drds) Descriptor deprecated added in v0.10.2

func (*Drds) Descriptor() ([]byte, []int)

Deprecated: Use Drds.ProtoReflect.Descriptor instead.

func (*Drds) GetConfigSource added in v0.10.2

func (x *Drds) GetConfigSource() *v3.ConfigSource

func (*Drds) GetRouteConfigName added in v0.10.2

func (x *Drds) GetRouteConfigName() string

func (*Drds) ProtoMessage added in v0.10.2

func (*Drds) ProtoMessage()

func (*Drds) ProtoReflect added in v0.10.2

func (x *Drds) ProtoReflect() protoreflect.Message

func (*Drds) Reset added in v0.10.2

func (x *Drds) Reset()

func (*Drds) String added in v0.10.2

func (x *Drds) String() string

func (*Drds) Validate added in v0.10.2

func (m *Drds) Validate() error

Validate checks the field values on Drds with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Drds) ValidateAll added in v0.10.2

func (m *Drds) ValidateAll() error

ValidateAll checks the field values on Drds with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DrdsMultiError, or nil if none found.

type DrdsMultiError added in v0.10.2

type DrdsMultiError []error

DrdsMultiError is an error wrapping multiple validation errors returned by Drds.ValidateAll() if the designated constraints aren't met.

func (DrdsMultiError) AllErrors added in v0.10.2

func (m DrdsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DrdsMultiError) Error added in v0.10.2

func (m DrdsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DrdsValidationError added in v0.10.2

type DrdsValidationError struct {
	// contains filtered or unexported fields
}

DrdsValidationError is the validation error returned by Drds.Validate if the designated constraints aren't met.

func (DrdsValidationError) Cause added in v0.10.2

func (e DrdsValidationError) Cause() error

Cause function returns cause value.

func (DrdsValidationError) Error added in v0.10.2

func (e DrdsValidationError) Error() string

Error satisfies the builtin error interface

func (DrdsValidationError) ErrorName added in v0.10.2

func (e DrdsValidationError) ErrorName() string

ErrorName returns error name.

func (DrdsValidationError) Field added in v0.10.2

func (e DrdsValidationError) Field() string

Field function returns field value.

func (DrdsValidationError) Key added in v0.10.2

func (e DrdsValidationError) Key() bool

Key function returns key value.

func (DrdsValidationError) Reason added in v0.10.2

func (e DrdsValidationError) Reason() string

Reason function returns reason value.

type DubboFilter

type DubboFilter struct {

	// The name of the filter to instantiate. The name must match a supported
	// filter.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Filter specific configuration which depends on the filter being
	// instantiated. See the supported filters for further documentation.
	Config *any1.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

DubboFilter configures a Dubbo filter.

func (*DubboFilter) Descriptor deprecated

func (*DubboFilter) Descriptor() ([]byte, []int)

Deprecated: Use DubboFilter.ProtoReflect.Descriptor instead.

func (*DubboFilter) GetConfig

func (x *DubboFilter) GetConfig() *any1.Any

func (*DubboFilter) GetName

func (x *DubboFilter) GetName() string

func (*DubboFilter) ProtoMessage

func (*DubboFilter) ProtoMessage()

func (*DubboFilter) ProtoReflect added in v0.9.6

func (x *DubboFilter) ProtoReflect() protoreflect.Message

func (*DubboFilter) Reset

func (x *DubboFilter) Reset()

func (*DubboFilter) String

func (x *DubboFilter) String() string

func (*DubboFilter) Validate

func (m *DubboFilter) Validate() error

Validate checks the field values on DubboFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DubboFilter) ValidateAll added in v0.10.0

func (m *DubboFilter) ValidateAll() error

ValidateAll checks the field values on DubboFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DubboFilterMultiError, or nil if none found.

type DubboFilterMultiError added in v0.10.0

type DubboFilterMultiError []error

DubboFilterMultiError is an error wrapping multiple validation errors returned by DubboFilter.ValidateAll() if the designated constraints aren't met.

func (DubboFilterMultiError) AllErrors added in v0.10.0

func (m DubboFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DubboFilterMultiError) Error added in v0.10.0

func (m DubboFilterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DubboFilterValidationError

type DubboFilterValidationError struct {
	// contains filtered or unexported fields
}

DubboFilterValidationError is the validation error returned by DubboFilter.Validate if the designated constraints aren't met.

func (DubboFilterValidationError) Cause

Cause function returns cause value.

func (DubboFilterValidationError) Error

Error satisfies the builtin error interface

func (DubboFilterValidationError) ErrorName

func (e DubboFilterValidationError) ErrorName() string

ErrorName returns error name.

func (DubboFilterValidationError) Field

Field function returns field value.

func (DubboFilterValidationError) Key

Key function returns key value.

func (DubboFilterValidationError) Reason

Reason function returns reason value.

type DubboProxy

type DubboProxy struct {

	// The human readable prefix to use when emitting statistics.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// Configure the protocol used.
	ProtocolType ProtocolType `` /* 164-byte string literal not displayed */
	// Configure the serialization protocol used.
	SerializationType SerializationType `` /* 184-byte string literal not displayed */
	// The route table for the connection manager is static and is specified in this property.
	//
	// .. note::
	//
	//	This field is deprecated. Please use “drds“ or “multiple_route_config“ first.
	//
	// Deprecated: Marked as deprecated in envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.proto.
	RouteConfig []*RouteConfiguration `protobuf:"bytes,4,rep,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"`
	// Types that are assignable to RouteSpecifier:
	//
	//	*DubboProxy_Drds
	//	*DubboProxy_MultipleRouteConfig
	RouteSpecifier isDubboProxy_RouteSpecifier `protobuf_oneof:"route_specifier"`
	// A list of individual Dubbo filters that make up the filter chain for requests made to the
	// Dubbo proxy. Order matters as the filters are processed sequentially. For backwards
	// compatibility, if no dubbo_filters are specified, a default Dubbo router filter
	// (“envoy.filters.dubbo.router“) is used.
	DubboFilters []*DubboFilter `protobuf:"bytes,5,rep,name=dubbo_filters,json=dubboFilters,proto3" json:"dubbo_filters,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 8]

func (*DubboProxy) Descriptor deprecated

func (*DubboProxy) Descriptor() ([]byte, []int)

Deprecated: Use DubboProxy.ProtoReflect.Descriptor instead.

func (*DubboProxy) GetDrds added in v0.10.2

func (x *DubboProxy) GetDrds() *Drds

func (*DubboProxy) GetDubboFilters

func (x *DubboProxy) GetDubboFilters() []*DubboFilter

func (*DubboProxy) GetMultipleRouteConfig added in v0.10.2

func (x *DubboProxy) GetMultipleRouteConfig() *MultipleRouteConfiguration

func (*DubboProxy) GetProtocolType

func (x *DubboProxy) GetProtocolType() ProtocolType

func (*DubboProxy) GetRouteConfig deprecated

func (x *DubboProxy) GetRouteConfig() []*RouteConfiguration

Deprecated: Marked as deprecated in envoy/extensions/filters/network/dubbo_proxy/v3/dubbo_proxy.proto.

func (*DubboProxy) GetRouteSpecifier added in v0.10.2

func (m *DubboProxy) GetRouteSpecifier() isDubboProxy_RouteSpecifier

func (*DubboProxy) GetSerializationType

func (x *DubboProxy) GetSerializationType() SerializationType

func (*DubboProxy) GetStatPrefix

func (x *DubboProxy) GetStatPrefix() string

func (*DubboProxy) ProtoMessage

func (*DubboProxy) ProtoMessage()

func (*DubboProxy) ProtoReflect added in v0.9.6

func (x *DubboProxy) ProtoReflect() protoreflect.Message

func (*DubboProxy) Reset

func (x *DubboProxy) Reset()

func (*DubboProxy) String

func (x *DubboProxy) String() string

func (*DubboProxy) Validate

func (m *DubboProxy) Validate() error

Validate checks the field values on DubboProxy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DubboProxy) ValidateAll added in v0.10.0

func (m *DubboProxy) ValidateAll() error

ValidateAll checks the field values on DubboProxy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DubboProxyMultiError, or nil if none found.

type DubboProxyMultiError added in v0.10.0

type DubboProxyMultiError []error

DubboProxyMultiError is an error wrapping multiple validation errors returned by DubboProxy.ValidateAll() if the designated constraints aren't met.

func (DubboProxyMultiError) AllErrors added in v0.10.0

func (m DubboProxyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DubboProxyMultiError) Error added in v0.10.0

func (m DubboProxyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DubboProxyValidationError

type DubboProxyValidationError struct {
	// contains filtered or unexported fields
}

DubboProxyValidationError is the validation error returned by DubboProxy.Validate if the designated constraints aren't met.

func (DubboProxyValidationError) Cause

func (e DubboProxyValidationError) Cause() error

Cause function returns cause value.

func (DubboProxyValidationError) Error

Error satisfies the builtin error interface

func (DubboProxyValidationError) ErrorName

func (e DubboProxyValidationError) ErrorName() string

ErrorName returns error name.

func (DubboProxyValidationError) Field

Field function returns field value.

func (DubboProxyValidationError) Key

Key function returns key value.

func (DubboProxyValidationError) Reason

func (e DubboProxyValidationError) Reason() string

Reason function returns reason value.

type DubboProxy_Drds added in v0.10.2

type DubboProxy_Drds struct {
	// Use xDS to fetch the route configuration. It is invalid to define both “route_config“ and “drds“.
	Drds *Drds `protobuf:"bytes,6,opt,name=drds,proto3,oneof"`
}

type DubboProxy_MultipleRouteConfig added in v0.10.2

type DubboProxy_MultipleRouteConfig struct {
	MultipleRouteConfig *MultipleRouteConfiguration `protobuf:"bytes,7,opt,name=multiple_route_config,json=multipleRouteConfig,proto3,oneof"`
}

type MethodMatch

type MethodMatch struct {

	// The name of the method.
	Name *v32.StringMatcher `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Method parameter definition.
	// The key is the parameter index, starting from 0.
	// The value is the parameter matching type.
	ParamsMatch map[uint32]*MethodMatch_ParameterMatchSpecifier `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MethodMatch) Descriptor deprecated

func (*MethodMatch) Descriptor() ([]byte, []int)

Deprecated: Use MethodMatch.ProtoReflect.Descriptor instead.

func (*MethodMatch) GetName

func (x *MethodMatch) GetName() *v32.StringMatcher

func (*MethodMatch) GetParamsMatch

func (x *MethodMatch) GetParamsMatch() map[uint32]*MethodMatch_ParameterMatchSpecifier

func (*MethodMatch) ProtoMessage

func (*MethodMatch) ProtoMessage()

func (*MethodMatch) ProtoReflect added in v0.9.6

func (x *MethodMatch) ProtoReflect() protoreflect.Message

func (*MethodMatch) Reset

func (x *MethodMatch) Reset()

func (*MethodMatch) String

func (x *MethodMatch) String() string

func (*MethodMatch) Validate

func (m *MethodMatch) Validate() error

Validate checks the field values on MethodMatch with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MethodMatch) ValidateAll added in v0.10.0

func (m *MethodMatch) ValidateAll() error

ValidateAll checks the field values on MethodMatch with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MethodMatchMultiError, or nil if none found.

type MethodMatchMultiError added in v0.10.0

type MethodMatchMultiError []error

MethodMatchMultiError is an error wrapping multiple validation errors returned by MethodMatch.ValidateAll() if the designated constraints aren't met.

func (MethodMatchMultiError) AllErrors added in v0.10.0

func (m MethodMatchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MethodMatchMultiError) Error added in v0.10.0

func (m MethodMatchMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MethodMatchValidationError

type MethodMatchValidationError struct {
	// contains filtered or unexported fields
}

MethodMatchValidationError is the validation error returned by MethodMatch.Validate if the designated constraints aren't met.

func (MethodMatchValidationError) Cause

Cause function returns cause value.

func (MethodMatchValidationError) Error

Error satisfies the builtin error interface

func (MethodMatchValidationError) ErrorName

func (e MethodMatchValidationError) ErrorName() string

ErrorName returns error name.

func (MethodMatchValidationError) Field

Field function returns field value.

func (MethodMatchValidationError) Key

Key function returns key value.

func (MethodMatchValidationError) Reason

Reason function returns reason value.

type MethodMatch_ParameterMatchSpecifier

type MethodMatch_ParameterMatchSpecifier struct {

	// Types that are assignable to ParameterMatchSpecifier:
	//
	//	*MethodMatch_ParameterMatchSpecifier_ExactMatch
	//	*MethodMatch_ParameterMatchSpecifier_RangeMatch
	ParameterMatchSpecifier isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier `protobuf_oneof:"parameter_match_specifier"`
	// contains filtered or unexported fields
}

The parameter matching type.

func (*MethodMatch_ParameterMatchSpecifier) Descriptor deprecated

func (*MethodMatch_ParameterMatchSpecifier) Descriptor() ([]byte, []int)

Deprecated: Use MethodMatch_ParameterMatchSpecifier.ProtoReflect.Descriptor instead.

func (*MethodMatch_ParameterMatchSpecifier) GetExactMatch

func (x *MethodMatch_ParameterMatchSpecifier) GetExactMatch() string

func (*MethodMatch_ParameterMatchSpecifier) GetParameterMatchSpecifier

func (m *MethodMatch_ParameterMatchSpecifier) GetParameterMatchSpecifier() isMethodMatch_ParameterMatchSpecifier_ParameterMatchSpecifier

func (*MethodMatch_ParameterMatchSpecifier) GetRangeMatch

func (*MethodMatch_ParameterMatchSpecifier) ProtoMessage

func (*MethodMatch_ParameterMatchSpecifier) ProtoMessage()

func (*MethodMatch_ParameterMatchSpecifier) ProtoReflect added in v0.9.6

func (*MethodMatch_ParameterMatchSpecifier) Reset

func (*MethodMatch_ParameterMatchSpecifier) String

func (*MethodMatch_ParameterMatchSpecifier) Validate

Validate checks the field values on MethodMatch_ParameterMatchSpecifier with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MethodMatch_ParameterMatchSpecifier) ValidateAll added in v0.10.0

func (m *MethodMatch_ParameterMatchSpecifier) ValidateAll() error

ValidateAll checks the field values on MethodMatch_ParameterMatchSpecifier with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MethodMatch_ParameterMatchSpecifierMultiError, or nil if none found.

type MethodMatch_ParameterMatchSpecifierMultiError added in v0.10.0

type MethodMatch_ParameterMatchSpecifierMultiError []error

MethodMatch_ParameterMatchSpecifierMultiError is an error wrapping multiple validation errors returned by MethodMatch_ParameterMatchSpecifier.ValidateAll() if the designated constraints aren't met.

func (MethodMatch_ParameterMatchSpecifierMultiError) AllErrors added in v0.10.0

AllErrors returns a list of validation violation errors.

func (MethodMatch_ParameterMatchSpecifierMultiError) Error added in v0.10.0

Error returns a concatenation of all the error messages it wraps.

type MethodMatch_ParameterMatchSpecifierValidationError

type MethodMatch_ParameterMatchSpecifierValidationError struct {
	// contains filtered or unexported fields
}

MethodMatch_ParameterMatchSpecifierValidationError is the validation error returned by MethodMatch_ParameterMatchSpecifier.Validate if the designated constraints aren't met.

func (MethodMatch_ParameterMatchSpecifierValidationError) Cause

Cause function returns cause value.

func (MethodMatch_ParameterMatchSpecifierValidationError) Error

Error satisfies the builtin error interface

func (MethodMatch_ParameterMatchSpecifierValidationError) ErrorName

ErrorName returns error name.

func (MethodMatch_ParameterMatchSpecifierValidationError) Field

Field function returns field value.

func (MethodMatch_ParameterMatchSpecifierValidationError) Key

Key function returns key value.

func (MethodMatch_ParameterMatchSpecifierValidationError) Reason

Reason function returns reason value.

type MethodMatch_ParameterMatchSpecifier_ExactMatch

type MethodMatch_ParameterMatchSpecifier_ExactMatch struct {
	// If specified, header match will be performed based on the value of the header.
	ExactMatch string `protobuf:"bytes,3,opt,name=exact_match,json=exactMatch,proto3,oneof"`
}

type MethodMatch_ParameterMatchSpecifier_RangeMatch

type MethodMatch_ParameterMatchSpecifier_RangeMatch struct {
	// If specified, header match will be performed based on range.
	// The rule will match if the request header value is within this range.
	// The entire request header value must represent an integer in base 10 notation: consisting
	// of an optional plus or minus sign followed by a sequence of digits. The rule will not match
	// if the header value does not represent an integer. Match will fail for empty values,
	// floating point numbers or if only a subsequence of the header value is an integer.
	//
	// Examples:
	//
	//   - For range [-10,0), route will match for header value -1, but not for 0,
	//     "somestring", 10.9, "-1somestring"
	RangeMatch *v33.Int64Range `protobuf:"bytes,4,opt,name=range_match,json=rangeMatch,proto3,oneof"`
}

type MultipleRouteConfiguration added in v0.10.2

type MultipleRouteConfiguration struct {

	// The name of the named route configurations. This name is used in asynchronous route discovery.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The route table of the dubbo connection manager.
	RouteConfig []*RouteConfiguration `protobuf:"bytes,4,rep,name=route_config,json=routeConfig,proto3" json:"route_config,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipleRouteConfiguration) Descriptor deprecated added in v0.10.2

func (*MultipleRouteConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use MultipleRouteConfiguration.ProtoReflect.Descriptor instead.

func (*MultipleRouteConfiguration) GetName added in v0.10.2

func (x *MultipleRouteConfiguration) GetName() string

func (*MultipleRouteConfiguration) GetRouteConfig added in v0.10.2

func (x *MultipleRouteConfiguration) GetRouteConfig() []*RouteConfiguration

func (*MultipleRouteConfiguration) ProtoMessage added in v0.10.2

func (*MultipleRouteConfiguration) ProtoMessage()

func (*MultipleRouteConfiguration) ProtoReflect added in v0.10.2

func (*MultipleRouteConfiguration) Reset added in v0.10.2

func (x *MultipleRouteConfiguration) Reset()

func (*MultipleRouteConfiguration) String added in v0.10.2

func (x *MultipleRouteConfiguration) String() string

func (*MultipleRouteConfiguration) Validate added in v0.10.2

func (m *MultipleRouteConfiguration) Validate() error

Validate checks the field values on MultipleRouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MultipleRouteConfiguration) ValidateAll added in v0.10.2

func (m *MultipleRouteConfiguration) ValidateAll() error

ValidateAll checks the field values on MultipleRouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MultipleRouteConfigurationMultiError, or nil if none found.

type MultipleRouteConfigurationMultiError added in v0.10.2

type MultipleRouteConfigurationMultiError []error

MultipleRouteConfigurationMultiError is an error wrapping multiple validation errors returned by MultipleRouteConfiguration.ValidateAll() if the designated constraints aren't met.

func (MultipleRouteConfigurationMultiError) AllErrors added in v0.10.2

AllErrors returns a list of validation violation errors.

func (MultipleRouteConfigurationMultiError) Error added in v0.10.2

Error returns a concatenation of all the error messages it wraps.

type MultipleRouteConfigurationValidationError added in v0.10.2

type MultipleRouteConfigurationValidationError struct {
	// contains filtered or unexported fields
}

MultipleRouteConfigurationValidationError is the validation error returned by MultipleRouteConfiguration.Validate if the designated constraints aren't met.

func (MultipleRouteConfigurationValidationError) Cause added in v0.10.2

Cause function returns cause value.

func (MultipleRouteConfigurationValidationError) Error added in v0.10.2

Error satisfies the builtin error interface

func (MultipleRouteConfigurationValidationError) ErrorName added in v0.10.2

ErrorName returns error name.

func (MultipleRouteConfigurationValidationError) Field added in v0.10.2

Field function returns field value.

func (MultipleRouteConfigurationValidationError) Key added in v0.10.2

Key function returns key value.

func (MultipleRouteConfigurationValidationError) Reason added in v0.10.2

Reason function returns reason value.

type ProtocolType

type ProtocolType int32

Dubbo Protocol types supported by Envoy.

const (
	// the default protocol.
	ProtocolType_Dubbo ProtocolType = 0
)

func (ProtocolType) Descriptor added in v0.9.6

func (ProtocolType) Enum added in v0.9.6

func (x ProtocolType) Enum() *ProtocolType

func (ProtocolType) EnumDescriptor deprecated

func (ProtocolType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolType.Descriptor instead.

func (ProtocolType) Number added in v0.9.6

func (ProtocolType) String

func (x ProtocolType) String() string

func (ProtocolType) Type added in v0.9.6

type Route

type Route struct {

	// Route matching parameters.
	Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// Route request to some upstream cluster.
	Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

func (*Route) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetMatch

func (x *Route) GetMatch() *RouteMatch

func (*Route) GetRoute

func (x *Route) GetRoute() *RouteAction

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect added in v0.9.6

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

func (*Route) Validate

func (m *Route) Validate() error

Validate checks the field values on Route with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Route) ValidateAll added in v0.10.0

func (m *Route) ValidateAll() error

ValidateAll checks the field values on Route with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RouteMultiError, or nil if none found.

type RouteAction

type RouteAction struct {

	// Types that are assignable to ClusterSpecifier:
	//
	//	*RouteAction_Cluster
	//	*RouteAction_WeightedClusters
	ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"`
	// Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in
	// the upstream cluster with metadata matching what is set in this field will be considered for
	// load balancing. The filter name should be specified as “envoy.lb“.
	MetadataMatch *v31.Metadata `protobuf:"bytes,3,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteAction) Descriptor deprecated

func (*RouteAction) Descriptor() ([]byte, []int)

Deprecated: Use RouteAction.ProtoReflect.Descriptor instead.

func (*RouteAction) GetCluster

func (x *RouteAction) GetCluster() string

func (*RouteAction) GetClusterSpecifier

func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier

func (*RouteAction) GetMetadataMatch added in v0.10.2

func (x *RouteAction) GetMetadataMatch() *v31.Metadata

func (*RouteAction) GetWeightedClusters

func (x *RouteAction) GetWeightedClusters() *v3.WeightedCluster

func (*RouteAction) ProtoMessage

func (*RouteAction) ProtoMessage()

func (*RouteAction) ProtoReflect added in v0.9.6

func (x *RouteAction) ProtoReflect() protoreflect.Message

func (*RouteAction) Reset

func (x *RouteAction) Reset()

func (*RouteAction) String

func (x *RouteAction) String() string

func (*RouteAction) Validate

func (m *RouteAction) Validate() error

Validate checks the field values on RouteAction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RouteAction) ValidateAll added in v0.10.0

func (m *RouteAction) ValidateAll() error

ValidateAll checks the field values on RouteAction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RouteActionMultiError, or nil if none found.

type RouteActionMultiError added in v0.10.0

type RouteActionMultiError []error

RouteActionMultiError is an error wrapping multiple validation errors returned by RouteAction.ValidateAll() if the designated constraints aren't met.

func (RouteActionMultiError) AllErrors added in v0.10.0

func (m RouteActionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RouteActionMultiError) Error added in v0.10.0

func (m RouteActionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RouteActionValidationError

type RouteActionValidationError struct {
	// contains filtered or unexported fields
}

RouteActionValidationError is the validation error returned by RouteAction.Validate if the designated constraints aren't met.

func (RouteActionValidationError) Cause

Cause function returns cause value.

func (RouteActionValidationError) Error

Error satisfies the builtin error interface

func (RouteActionValidationError) ErrorName

func (e RouteActionValidationError) ErrorName() string

ErrorName returns error name.

func (RouteActionValidationError) Field

Field function returns field value.

func (RouteActionValidationError) Key

Key function returns key value.

func (RouteActionValidationError) Reason

Reason function returns reason value.

type RouteAction_Cluster

type RouteAction_Cluster struct {
	// Indicates the upstream cluster to which the request should be routed.
	Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"`
}

type RouteAction_WeightedClusters

type RouteAction_WeightedClusters struct {
	// Multiple upstream clusters can be specified for a given route. The
	// request is routed to one of the upstream clusters based on weights
	// assigned to each cluster.
	// Currently ClusterWeight only supports the name and weight fields.
	WeightedClusters *v3.WeightedCluster `protobuf:"bytes,2,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"`
}

type RouteConfiguration

type RouteConfiguration struct {

	// The name of the route configuration. Reserved for future use in asynchronous route discovery.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The interface name of the service. Wildcard interface are supported in the suffix or prefix form.
	// e.g. “*.methods.add“ will match “com.dev.methods.add“, “com.prod.methods.add“, etc.
	// “com.dev.methods.*“ will match “com.dev.methods.add“, “com.dev.methods.update“, etc.
	// Special wildcard “*“ matching any interface.
	//
	// .. note::
	//
	//	The wildcard will not match the empty string.
	//	e.g. “*.methods.add“ will match “com.dev.methods.add“ but not “.methods.add“.
	Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"`
	// Which group does the interface belong to.
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// The version number of the interface.
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// The list of routes that will be matched, in order, against incoming requests. The first route
	// that matches will be used.
	Routes []*Route `protobuf:"bytes,5,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 6]

func (*RouteConfiguration) Descriptor deprecated

func (*RouteConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use RouteConfiguration.ProtoReflect.Descriptor instead.

func (*RouteConfiguration) GetGroup

func (x *RouteConfiguration) GetGroup() string

func (*RouteConfiguration) GetInterface

func (x *RouteConfiguration) GetInterface() string

func (*RouteConfiguration) GetName

func (x *RouteConfiguration) GetName() string

func (*RouteConfiguration) GetRoutes

func (x *RouteConfiguration) GetRoutes() []*Route

func (*RouteConfiguration) GetVersion

func (x *RouteConfiguration) GetVersion() string

func (*RouteConfiguration) ProtoMessage

func (*RouteConfiguration) ProtoMessage()

func (*RouteConfiguration) ProtoReflect added in v0.9.6

func (x *RouteConfiguration) ProtoReflect() protoreflect.Message

func (*RouteConfiguration) Reset

func (x *RouteConfiguration) Reset()

func (*RouteConfiguration) String

func (x *RouteConfiguration) String() string

func (*RouteConfiguration) Validate

func (m *RouteConfiguration) Validate() error

Validate checks the field values on RouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RouteConfiguration) ValidateAll added in v0.10.0

func (m *RouteConfiguration) ValidateAll() error

ValidateAll checks the field values on RouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RouteConfigurationMultiError, or nil if none found.

type RouteConfigurationMultiError added in v0.10.0

type RouteConfigurationMultiError []error

RouteConfigurationMultiError is an error wrapping multiple validation errors returned by RouteConfiguration.ValidateAll() if the designated constraints aren't met.

func (RouteConfigurationMultiError) AllErrors added in v0.10.0

func (m RouteConfigurationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RouteConfigurationMultiError) Error added in v0.10.0

Error returns a concatenation of all the error messages it wraps.

type RouteConfigurationValidationError

type RouteConfigurationValidationError struct {
	// contains filtered or unexported fields
}

RouteConfigurationValidationError is the validation error returned by RouteConfiguration.Validate if the designated constraints aren't met.

func (RouteConfigurationValidationError) Cause

Cause function returns cause value.

func (RouteConfigurationValidationError) Error

Error satisfies the builtin error interface

func (RouteConfigurationValidationError) ErrorName

ErrorName returns error name.

func (RouteConfigurationValidationError) Field

Field function returns field value.

func (RouteConfigurationValidationError) Key

Key function returns key value.

func (RouteConfigurationValidationError) Reason

Reason function returns reason value.

type RouteMatch

type RouteMatch struct {

	// Method level routing matching.
	Method *MethodMatch `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	// Specifies a set of headers that the route should match on. The router will check the request’s
	// headers against all the specified headers in the route config. A match will happen if all the
	// headers in the route are present in the request with the same values (or based on presence if
	// the value field is not in the config).
	Headers []*v3.HeaderMatcher `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteMatch) Descriptor deprecated

func (*RouteMatch) Descriptor() ([]byte, []int)

Deprecated: Use RouteMatch.ProtoReflect.Descriptor instead.

func (*RouteMatch) GetHeaders

func (x *RouteMatch) GetHeaders() []*v3.HeaderMatcher

func (*RouteMatch) GetMethod

func (x *RouteMatch) GetMethod() *MethodMatch

func (*RouteMatch) ProtoMessage

func (*RouteMatch) ProtoMessage()

func (*RouteMatch) ProtoReflect added in v0.9.6

func (x *RouteMatch) ProtoReflect() protoreflect.Message

func (*RouteMatch) Reset

func (x *RouteMatch) Reset()

func (*RouteMatch) String

func (x *RouteMatch) String() string

func (*RouteMatch) Validate

func (m *RouteMatch) Validate() error

Validate checks the field values on RouteMatch with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RouteMatch) ValidateAll added in v0.10.0

func (m *RouteMatch) ValidateAll() error

ValidateAll checks the field values on RouteMatch with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RouteMatchMultiError, or nil if none found.

type RouteMatchMultiError added in v0.10.0

type RouteMatchMultiError []error

RouteMatchMultiError is an error wrapping multiple validation errors returned by RouteMatch.ValidateAll() if the designated constraints aren't met.

func (RouteMatchMultiError) AllErrors added in v0.10.0

func (m RouteMatchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RouteMatchMultiError) Error added in v0.10.0

func (m RouteMatchMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RouteMatchValidationError

type RouteMatchValidationError struct {
	// contains filtered or unexported fields
}

RouteMatchValidationError is the validation error returned by RouteMatch.Validate if the designated constraints aren't met.

func (RouteMatchValidationError) Cause

func (e RouteMatchValidationError) Cause() error

Cause function returns cause value.

func (RouteMatchValidationError) Error

Error satisfies the builtin error interface

func (RouteMatchValidationError) ErrorName

func (e RouteMatchValidationError) ErrorName() string

ErrorName returns error name.

func (RouteMatchValidationError) Field

Field function returns field value.

func (RouteMatchValidationError) Key

Key function returns key value.

func (RouteMatchValidationError) Reason

func (e RouteMatchValidationError) Reason() string

Reason function returns reason value.

type RouteMultiError added in v0.10.0

type RouteMultiError []error

RouteMultiError is an error wrapping multiple validation errors returned by Route.ValidateAll() if the designated constraints aren't met.

func (RouteMultiError) AllErrors added in v0.10.0

func (m RouteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RouteMultiError) Error added in v0.10.0

func (m RouteMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RouteValidationError

type RouteValidationError struct {
	// contains filtered or unexported fields
}

RouteValidationError is the validation error returned by Route.Validate if the designated constraints aren't met.

func (RouteValidationError) Cause

func (e RouteValidationError) Cause() error

Cause function returns cause value.

func (RouteValidationError) Error

func (e RouteValidationError) Error() string

Error satisfies the builtin error interface

func (RouteValidationError) ErrorName

func (e RouteValidationError) ErrorName() string

ErrorName returns error name.

func (RouteValidationError) Field

func (e RouteValidationError) Field() string

Field function returns field value.

func (RouteValidationError) Key

func (e RouteValidationError) Key() bool

Key function returns key value.

func (RouteValidationError) Reason

func (e RouteValidationError) Reason() string

Reason function returns reason value.

type SerializationType

type SerializationType int32

Dubbo Serialization types supported by Envoy.

const (
	// the default serialization protocol.
	SerializationType_Hessian2 SerializationType = 0
)

func (SerializationType) Descriptor added in v0.9.6

func (SerializationType) Enum added in v0.9.6

func (SerializationType) EnumDescriptor deprecated

func (SerializationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SerializationType.Descriptor instead.

func (SerializationType) Number added in v0.9.6

func (SerializationType) String

func (x SerializationType) String() string

func (SerializationType) Type added in v0.9.6

Jump to

Keyboard shortcuts

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