...

Package grpc_route

import "github.com/linkerd/linkerd2-proxy-api/go/grpc_route"
Overview
Index

Overview ▾

Variables

var File_grpc_route_proto protoreflect.FileDescriptor

type GrpcFailureInjector

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

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

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

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