Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRateLimitServiceServer ¶
func RegisterRateLimitServiceServer(s *grpc.Server, srv RateLimitServiceServer)
Types ¶
type RateLimitServiceClient ¶
type RateLimitServiceClient interface {
ShouldRateLimit(ctx context.Context, in *v2.RateLimitRequest, opts ...grpc.CallOption) (*v2.RateLimitResponse, error)
}
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.
func NewRateLimitServiceClient ¶
func NewRateLimitServiceClient(cc *grpc.ClientConn) RateLimitServiceClient
type RateLimitServiceServer ¶
type RateLimitServiceServer interface {
ShouldRateLimit(context.Context, *v2.RateLimitRequest) (*v2.RateLimitResponse, error)
}
RateLimitServiceServer is the server API for RateLimitService service.
type UnimplementedRateLimitServiceServer ¶
type UnimplementedRateLimitServiceServer struct { }
UnimplementedRateLimitServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRateLimitServiceServer) ShouldRateLimit ¶
func (*UnimplementedRateLimitServiceServer) ShouldRateLimit(ctx context.Context, req *v2.RateLimitRequest) (*v2.RateLimitResponse, error)
Click to show internal directories.
Click to hide internal directories.