Documentation
¶
Index ¶
- Variables
- type GrpcFailureInjector
- func (*GrpcFailureInjector) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcFailureInjector) GetCode() uint32
- func (x *GrpcFailureInjector) GetMessage() string
- func (x *GrpcFailureInjector) GetRatio() *http_route.Ratio
- func (*GrpcFailureInjector) ProtoMessage()
- func (x *GrpcFailureInjector) ProtoReflect() protoreflect.Message
- func (x *GrpcFailureInjector) Reset()
- func (x *GrpcFailureInjector) String() string
- type GrpcRouteMatch
- func (*GrpcRouteMatch) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcRouteMatch) GetHeaders() []*http_route.HeaderMatch
- func (x *GrpcRouteMatch) GetRpc() *GrpcRpcMatch
- func (*GrpcRouteMatch) ProtoMessage()
- func (x *GrpcRouteMatch) ProtoReflect() protoreflect.Message
- func (x *GrpcRouteMatch) Reset()
- func (x *GrpcRouteMatch) String() string
- type GrpcRpcMatch
- func (*GrpcRpcMatch) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcRpcMatch) GetMethod() string
- func (x *GrpcRpcMatch) GetService() string
- func (*GrpcRpcMatch) ProtoMessage()
- func (x *GrpcRpcMatch) ProtoReflect() protoreflect.Message
- func (x *GrpcRpcMatch) Reset()
- func (x *GrpcRpcMatch) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_grpc_route_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GrpcFailureInjector ¶
type GrpcFailureInjector struct {
// The status code to use in the `grpc-status` response. Must be specified.
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
// An error message to log and include in the `grpc-message` header.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// If specified, the rate of requests that should be failed. If not specified,
// ALL requests are failed.
Ratio *http_route.Ratio `protobuf:"bytes,3,opt,name=ratio,proto3" json:"ratio,omitempty"`
// contains filtered or unexported fields
}
Configures a route to respond with a fixed response.
func (*GrpcFailureInjector) Descriptor
deprecated
func (*GrpcFailureInjector) Descriptor() ([]byte, []int)
Deprecated: Use GrpcFailureInjector.ProtoReflect.Descriptor instead.
func (*GrpcFailureInjector) GetCode ¶
func (x *GrpcFailureInjector) GetCode() uint32
func (*GrpcFailureInjector) GetMessage ¶
func (x *GrpcFailureInjector) GetMessage() string
func (*GrpcFailureInjector) GetRatio ¶
func (x *GrpcFailureInjector) GetRatio() *http_route.Ratio
func (*GrpcFailureInjector) ProtoMessage ¶
func (*GrpcFailureInjector) ProtoMessage()
func (*GrpcFailureInjector) ProtoReflect ¶
func (x *GrpcFailureInjector) ProtoReflect() protoreflect.Message
func (*GrpcFailureInjector) Reset ¶
func (x *GrpcFailureInjector) Reset()
func (*GrpcFailureInjector) String ¶
func (x *GrpcFailureInjector) String() string
type GrpcRouteMatch ¶
type GrpcRouteMatch struct {
Rpc *GrpcRpcMatch `protobuf:"bytes,1,opt,name=rpc,proto3" json:"rpc,omitempty"`
// A set of header value matches that must be satisified. This match is not
// comprehensive, so requests may include headers that are not covered by this
// match.
Headers []*http_route.HeaderMatch `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
// contains filtered or unexported fields
}
func (*GrpcRouteMatch) Descriptor
deprecated
func (*GrpcRouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRouteMatch.ProtoReflect.Descriptor instead.
func (*GrpcRouteMatch) GetHeaders ¶
func (x *GrpcRouteMatch) GetHeaders() []*http_route.HeaderMatch
func (*GrpcRouteMatch) GetRpc ¶
func (x *GrpcRouteMatch) GetRpc() *GrpcRpcMatch
func (*GrpcRouteMatch) ProtoMessage ¶
func (*GrpcRouteMatch) ProtoMessage()
func (*GrpcRouteMatch) ProtoReflect ¶
func (x *GrpcRouteMatch) ProtoReflect() protoreflect.Message
func (*GrpcRouteMatch) Reset ¶
func (x *GrpcRouteMatch) Reset()
func (*GrpcRouteMatch) String ¶
func (x *GrpcRouteMatch) String() string
type GrpcRpcMatch ¶
type GrpcRpcMatch struct {
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
// contains filtered or unexported fields
}
func (*GrpcRpcMatch) Descriptor
deprecated
func (*GrpcRpcMatch) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRpcMatch.ProtoReflect.Descriptor instead.
func (*GrpcRpcMatch) GetMethod ¶
func (x *GrpcRpcMatch) GetMethod() string
func (*GrpcRpcMatch) GetService ¶
func (x *GrpcRpcMatch) GetService() string
func (*GrpcRpcMatch) ProtoMessage ¶
func (*GrpcRpcMatch) ProtoMessage()
func (*GrpcRpcMatch) ProtoReflect ¶
func (x *GrpcRpcMatch) ProtoReflect() protoreflect.Message
func (*GrpcRpcMatch) Reset ¶
func (x *GrpcRpcMatch) Reset()
func (*GrpcRpcMatch) String ¶
func (x *GrpcRpcMatch) String() string
Click to show internal directories.
Click to hide internal directories.