...

Package pb_lyft_ratelimit

import "github.com/datawire/ambassador/v2/pkg/api/pb/lyft/ratelimit"
Overview
Index

Overview ▾

Variables

var File_pb_lyft_ratelimit_rls_proto protoreflect.FileDescriptor

func RegisterRateLimitServiceServer

func RegisterRateLimitServiceServer(s *grpc.Server, srv RateLimitServiceServer)

type RateLimitServiceClient

RateLimitServiceClient is the client API for RateLimitService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type RateLimitServiceClient interface {
    ShouldRateLimit(ctx context.Context, in *v2.RateLimitRequest, opts ...grpc.CallOption) (*v2.RateLimitResponse, error)
}

func NewRateLimitServiceClient

func NewRateLimitServiceClient(cc grpc.ClientConnInterface) RateLimitServiceClient

type RateLimitServiceServer

RateLimitServiceServer is the server API for RateLimitService service.

type RateLimitServiceServer interface {
    ShouldRateLimit(context.Context, *v2.RateLimitRequest) (*v2.RateLimitResponse, error)
}

type UnimplementedRateLimitServiceServer

UnimplementedRateLimitServiceServer can be embedded to have forward compatible implementations.

type UnimplementedRateLimitServiceServer struct {
}

func (*UnimplementedRateLimitServiceServer) ShouldRateLimit

func (*UnimplementedRateLimitServiceServer) ShouldRateLimit(context.Context, *v2.RateLimitRequest) (*v2.RateLimitResponse, error)