thriftv3

package
v0.11.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_health_checkers_thrift_v3_thrift_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Thrift

type Thrift struct {

	// Specifies the method name that will be set on each health check request dispatched to an upstream host.
	// Note that method name is case sensitive.
	MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	// Configures the transport type to be used with the health checks. Note that
	// :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
	// is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
	// since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
	// [#extension-category: envoy.filters.network]
	Transport v3.TransportType `` /* 140-byte string literal not displayed */
	// Configures the protocol type to be used with the health checks. Note that
	// :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
	// and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
	// are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
	// since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
	// or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
	Protocol v3.ProtocolType `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Thrift) Descriptor deprecated

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

Deprecated: Use Thrift.ProtoReflect.Descriptor instead.

func (*Thrift) GetMethodName

func (x *Thrift) GetMethodName() string

func (*Thrift) GetProtocol

func (x *Thrift) GetProtocol() v3.ProtocolType

func (*Thrift) GetTransport

func (x *Thrift) GetTransport() v3.TransportType

func (*Thrift) ProtoMessage

func (*Thrift) ProtoMessage()

func (*Thrift) ProtoReflect

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

func (*Thrift) Reset

func (x *Thrift) Reset()

func (*Thrift) String

func (x *Thrift) String() string

func (*Thrift) Validate

func (m *Thrift) Validate() error

Validate checks the field values on Thrift 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 (*Thrift) ValidateAll

func (m *Thrift) ValidateAll() error

ValidateAll checks the field values on Thrift 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 ThriftMultiError, or nil if none found.

type ThriftMultiError

type ThriftMultiError []error

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

func (ThriftMultiError) AllErrors

func (m ThriftMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ThriftMultiError) Error

func (m ThriftMultiError) Error() string

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

type ThriftValidationError

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

ThriftValidationError is the validation error returned by Thrift.Validate if the designated constraints aren't met.

func (ThriftValidationError) Cause

func (e ThriftValidationError) Cause() error

Cause function returns cause value.

func (ThriftValidationError) Error

func (e ThriftValidationError) Error() string

Error satisfies the builtin error interface

func (ThriftValidationError) ErrorName

func (e ThriftValidationError) ErrorName() string

ErrorName returns error name.

func (ThriftValidationError) Field

func (e ThriftValidationError) Field() string

Field function returns field value.

func (ThriftValidationError) Key

func (e ThriftValidationError) Key() bool

Key function returns key value.

func (ThriftValidationError) Reason

func (e ThriftValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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