Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDefaultSlotChain ¶
func Entry ¶
func Entry(resource string, opts ...api.EntryOption) (*base.SentinelEntry, *base.BlockError)
func GlobalSlotChain ¶
func TraceError ¶
func TraceError(entry *base.SentinelEntry, err error)
Types ¶
type BlockError ¶
type BlockError struct { BlockErr *base.BlockError Err error }
BlockError 用来存储sentinel的熔断错误和用户自身错误
func (*BlockError) Error ¶
func (e *BlockError) Error() string
func (*BlockError) Unwrap ¶
func (e *BlockError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.