v2

package
v0.0.0-...-113c6ea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v2 is a generated protocol buffer package.

It is generated from these files:

envoy/config/filter/network/mongo_proxy/v2/mongo_proxy.proto

It has these top-level messages:

MongoProxy

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type MongoProxy

type MongoProxy struct {
	// The human readable prefix to use when emitting :ref:`statistics
	// <config_network_filters_mongo_proxy_stats>`.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// The optional path to use for writing Mongo access logs. If not access log
	// path is specified no access logs will be written. Note that access log is
	// also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
	AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"`
	// Inject a fixed delay before proxying a Mongo operation. Delays are
	// applied to the following MongoDB operations: Query, Insert, GetMore,
	// and KillCursors. Once an active delay is in progress, all incoming
	// data up until the timer event fires will be a part of the delay.
	Delay *envoy_config_filter_fault_v2.FaultDelay `protobuf:"bytes,3,opt,name=delay" json:"delay,omitempty"`
}

func (*MongoProxy) Descriptor

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

func (*MongoProxy) GetAccessLog

func (m *MongoProxy) GetAccessLog() string

func (*MongoProxy) GetDelay

func (*MongoProxy) GetStatPrefix

func (m *MongoProxy) GetStatPrefix() string

func (*MongoProxy) Marshal

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

func (*MongoProxy) MarshalTo

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

func (*MongoProxy) ProtoMessage

func (*MongoProxy) ProtoMessage()

func (*MongoProxy) Reset

func (m *MongoProxy) Reset()

func (*MongoProxy) Size

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

func (*MongoProxy) String

func (m *MongoProxy) String() string

func (*MongoProxy) Unmarshal

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

func (*MongoProxy) Validate

func (m *MongoProxy) Validate() error

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

type MongoProxyValidationError

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

MongoProxyValidationError is the validation error returned by MongoProxy.Validate if the designated constraints aren't met.

func (MongoProxyValidationError) 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