MCPcopy Create free account
hub / github.com/goodrain/rainbond / Coder

Interface Coder

api/util/bcode/bcode.go:30–37  ·  view source on GitHub ↗

Coder has ability to get Code, msg or detail from error.

Source from the content-addressed store, hash-verified

28
29// Coder has ability to get Code, msg or detail from error.
30type Coder interface {
31 // Status Code
32 GetStatus() int
33 // business Code
34 GetCode() int
35 Error() string
36 Equal(err error) bool
37}
38
39var (
40 codes = make(map[int]struct{})

Callers 24

GetAppStatusMethod · 0.65
RestartServiceMethod · 0.65
StatusServiceMethod · 0.65
statusMethod · 0.65
InspectContainerMethod · 0.65
ReturnBcodeErrorFunction · 0.65
EqualMethod · 0.65
ReturnBcodeErrorFunction · 0.65
SendBuilderTopicMethod · 0.65
enqueueMethod · 0.65
dequeueMethod · 0.65
StartCancelMethod · 0.65

Implementers 1

Codeapi/util/bcode/bcode.go

Calls

no outgoing calls

Tested by

no test coverage detected