Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitInterceptor ¶
type RateLimitInterceptor struct {
// contains filtered or unexported fields
}
func NewRateLimitInterceptor ¶
func NewRateLimitInterceptor(options ...RateLimitInterceptorOption) *RateLimitInterceptor
func (*RateLimitInterceptor) StreamServerInterceptor ¶
func (r *RateLimitInterceptor) StreamServerInterceptor(keyGetter KeyGetter) grpc.StreamServerInterceptor
func (*RateLimitInterceptor) UnaryServerInterceptor ¶
func (r *RateLimitInterceptor) UnaryServerInterceptor(keyGetter KeyGetter) grpc.UnaryServerInterceptor
type RateLimitInterceptorOption ¶
type RateLimitInterceptorOption func(*RateLimitInterceptor)
func WithMemoryStore ¶
func WithMemoryStore(mstore *memrate.MemoryStore) RateLimitInterceptorOption
func WithRedisStore ¶
func WithRedisStore(rdb redisrate.Rediser, fn redisrate.LimitFn) RateLimitInterceptorOption
Click to show internal directories.
Click to hide internal directories.