Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorsInterceptor ¶
func ErrorsInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
func ValidateInterceptor ¶
func ValidateInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
Types ¶
type GRPCStatusInterface ¶
type RateLimiterInterceptor ¶
type RateLimiterInterceptor struct {
// contains filtered or unexported fields
}
func NewRateLimiterInterceptor ¶
func NewRateLimiterInterceptor(limiter *rate_limiter.TokenBucketLimiter) *RateLimiterInterceptor
func (*RateLimiterInterceptor) Unary ¶
func (rli *RateLimiterInterceptor) Unary( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.