Documentation ¶ Index ¶ Constants type Code type Error func NewError(code Code, message string) *Error func (e *Error) Code() string func (e *Error) Detail() string func (e *Error) Error() string Constants ¶ View Source const ( UnknownErrCode = Code(1000) InvalidArgument = Code(1001) ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Code ¶ type Code = string type Error ¶ type Error struct { // contains filtered or unexported fields } func NewError ¶ func NewError(code Code, message string) *Error func (*Error) Code ¶ func (e *Error) Code() string func (*Error) Detail ¶ func (e *Error) Detail() string func (*Error) Error ¶ func (e *Error) Error() string Source Files ¶ View all Source files error.go Directories ¶ Show internal Expand all Path Synopsis client interceptor demo sdk/common sdk/error sdk/user Package user is a reverse proxy. Package user is a reverse proxy. server/test server interceptor tracer Click to show internal directories. Click to hide internal directories.