v2

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type FilterConfig

type FilterConfig struct {
	// The content-type to pass to the upstream when the gRPC bridge filter is applied.
	// The filter will also validate that the upstream responds with the same content type.
	ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// If true, Envoy will assume that the upstream doesn't understand gRPC frames and
	// strip the gRPC frame from the request, and add it back in to the response. This will
	// hide the gRPC semantics from the upstream, allowing it to receive and respond with a
	// simple binary encoded protobuf.
	WithholdGrpcFrames   bool     `protobuf:"varint,2,opt,name=withhold_grpc_frames,json=withholdGrpcFrames,proto3" json:"withhold_grpc_frames,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

[#protodoc-title: Extensions gRPC Http1 Reverse Bridge] gRPC reverse bridge filter configuration

func (*FilterConfig) Descriptor

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

func (*FilterConfig) GetContentType

func (m *FilterConfig) GetContentType() string

func (*FilterConfig) GetWithholdGrpcFrames

func (m *FilterConfig) GetWithholdGrpcFrames() bool

func (*FilterConfig) Marshal

func (m *FilterConfig) Marshal() (dAtA []byte, err error)

func (*FilterConfig) MarshalTo

func (m *FilterConfig) MarshalTo(dAtA []byte) (int, error)

func (*FilterConfig) ProtoMessage

func (*FilterConfig) ProtoMessage()

func (*FilterConfig) Reset

func (m *FilterConfig) Reset()

func (*FilterConfig) Size

func (m *FilterConfig) Size() (n int)

func (*FilterConfig) String

func (m *FilterConfig) String() string

func (*FilterConfig) Unmarshal

func (m *FilterConfig) Unmarshal(dAtA []byte) error

func (*FilterConfig) Validate

func (m *FilterConfig) Validate() error

Validate checks the field values on FilterConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*FilterConfig) XXX_DiscardUnknown

func (m *FilterConfig) XXX_DiscardUnknown()

func (*FilterConfig) XXX_Marshal

func (m *FilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilterConfig) XXX_Merge

func (m *FilterConfig) XXX_Merge(src proto.Message)

func (*FilterConfig) XXX_Size

func (m *FilterConfig) XXX_Size() int

func (*FilterConfig) XXX_Unmarshal

func (m *FilterConfig) XXX_Unmarshal(b []byte) error

type FilterConfigValidationError

type FilterConfigValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

FilterConfigValidationError is the validation error returned by FilterConfig.Validate if the designated constraints aren't met.

func (FilterConfigValidationError) Error

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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