Back to godoc.org
github.com/tommy-sho/rate-limiter-grpc-go

Package ratelimit

v0.0.0-...-98190a3
Latest Go to latest

The latest major version is .

Published: Apr 11, 2020 | License: MIT | Module: github.com/tommy-sho/rate-limiter-grpc-go

Index

func NewLimiter

func NewLimiter(count int) grpc_ratelimit.Limiter

NewLimiter return new go-grpc Limiter, specified the number of requests you want to limit as a counts per second.

func StreamClientInterceptor

func StreamClientInterceptor(limiter grpc_ratelimit.Limiter) grpc.StreamClientInterceptor

StreamServerInterceptor return stream server unary interceptor that limit requests.

func StreamServerInterceptor

func StreamServerInterceptor(limiter grpc_ratelimit.Limiter) grpc.StreamServerInterceptor

StreamServerInterceptor return stream server unary interceptor that limit requests.

func UnaryClientInterceptor

func UnaryClientInterceptor(limiter grpc_ratelimit.Limiter) grpc.UnaryClientInterceptor

UnaryServerInterceptor return server unary interceptor that limit requests.

func UnaryServerInterceptor

func UnaryServerInterceptor(limiter grpc_ratelimit.Limiter) grpc.UnaryServerInterceptor

UnaryServerInterceptor return server unary interceptor that limit requests.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier