ratelimit

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptorBuilder

type InterceptorBuilder struct {
	// contains filtered or unexported fields
}

func (*InterceptorBuilder) BuildClientInterceptor

func (s *InterceptorBuilder) BuildClientInterceptor() grpc.UnaryClientInterceptor

BuildClientInterceptor 客户端限流 key limiter:service:user

func (*InterceptorBuilder) BuildServerInterceptor

func (s *InterceptorBuilder) BuildServerInterceptor() grpc.UnaryServerInterceptor

BuildServerInterceptor 整个应用,集群的限流 key limiter:service:user

func (*InterceptorBuilder) BuildServerInterceptorIO

func (s *InterceptorBuilder) BuildServerInterceptorIO() grpc.UnaryServerInterceptor

BuildServerInterceptorIO 配合后续业务做限流处理 key limiter:service:user

func (*InterceptorBuilder) BuildServerInterceptorService

func (s *InterceptorBuilder) BuildServerInterceptorService() grpc.UnaryServerInterceptor

BuildServerInterceptorService 服务级别限流 key limiter:service:user:UserService user 里面的 UserService 限流

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL