bytedance / gopkg

Universal Utilities for Go
Apache License 2.0
1.71k stars 224 forks source link

circuitbreaker Panel 接口添加 State 方法 #187

Open snakorse opened 1 year ago

snakorse commented 1 year ago

Summary

https://github.com/bytedance/gopkg/blob/614d0af6619bf612a797e07e6a1ac1533f529491/cloud/circuitbreaker/interface.go#L20C8-L20C8

circuitbreaker.Panel 接口可以添加一个 State(key string) State 的方法吗

Motivation

在某些场景下,我希望获取某个key关联的breaker的状态,来做不同的动作,比如进行重新进行调度

Explanation

No response