Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMaxConcurrency = hystrix.ErrMaxConcurrency ErrCircuitOpen = hystrix.ErrCircuitOpen ErrTimeout = hystrix.ErrTimeout )
Functions ¶
func Configure ¶
func Configure(cmds map[string]CommandConfig)
func ConfigureCommand ¶
func ConfigureCommand(name string, config CommandConfig)
func GetCircuitSettings ¶
func WithUnaryClient ¶
func WithUnaryClient(opts ...Option) grpc.DialOption
WithUnaryClient 客户端普通方法调用添加 hystrix 熔断器
Types ¶
type CommandConfig ¶
type CommandConfig = hystrix.CommandConfig
type Option ¶
type Option struct { grpc.EmptyCallOption // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.