Skip to content

circuitbreaker Panel 接口添加 State 方法 #187

@snakorse

Description

@snakorse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions