Documentation ¶
Index ¶
- func ClientBreakInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func ExampleInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func WithServerBreakerInterceptor() grpc.UnaryServerInterceptor
- type Breaker
- type Group
- type SreBreakerGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientBreakInterceptor ¶
func ClientBreakInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
ClientBreakInterceptor 客户端熔断器
func ExampleInterceptor ¶
func ExampleInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
func WithServerBreakerInterceptor ¶
func WithServerBreakerInterceptor() grpc.UnaryServerInterceptor
WithServerBreakerInterceptor rpc 服务端熔断器
Types ¶
type SreBreakerGroup ¶
func (*SreBreakerGroup) Get ¶
func (g *SreBreakerGroup) Get(key string) Breaker
Click to show internal directories.
Click to hide internal directories.