cep21 / circuit

An efficient and feature complete Hystrix like Go implementation of the circuit breaker pattern.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to tell circuit's builtin error from app's

jiacai2050 opened this issue · comments

As for now, circuitError is defined as package-private, so we can't do type check like _, ok := err.(circuitError).

Maybe we can add a IsBuiltinError(error) public func? my application need this info to do different business logic.

Does #77 help?