Documentation ¶
Index ¶
- func Errorf(code ECode, formant string, a ...interface{}) error
- func StatusCodeFromECode(code ECode) int
- func WrapError(origin error, code ECode, format string, a ...interface{}) error
- func WrapErrorNil(origin error, code ECode, format string, a ...interface{}) error
- type ECode
- type Error
- type Friendship
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusCodeFromECode ¶
Types ¶
type ECode ¶
type ECode uint8
ECode represents an error code in the system.
Error codes which map good to http errors.
func ECodeFromStatusCode ¶
ECodeFromStatusCode is a helper function to map a http status code to a error
if code not found: returns EINTERNAL
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an internal error which implements the error interface.
type Friendship ¶
Friendship represents a friendship from the perspective of P1.
func (Friendship) Validate ¶
func (f Friendship) Validate() error
Click to show internal directories.
Click to hide internal directories.