var File_grpc_route_proto protoreflect.FileDescriptor
Configures a route to respond with a fixed response.
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 }
func (*GrpcFailureInjector) Descriptor() ([]byte, []int)
Deprecated: Use GrpcFailureInjector.ProtoReflect.Descriptor instead.
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 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() ([]byte, []int)
Deprecated: Use GrpcRouteMatch.ProtoReflect.Descriptor instead.
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 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() ([]byte, []int)
Deprecated: Use GrpcRpcMatch.ProtoReflect.Descriptor instead.
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