Documentation
¶
Index ¶
- Variables
- type Code
- func (c *Code) Code() int
- func (c *Code) Err() error
- func (c *Code) Format(s fmt.State, verb rune)
- func (c *Code) Message() string
- func (c *Code) Redirect() string
- func (c *Code) String() string
- func (c *Code) WithCode(code int) *Code
- func (c *Code) WithMessage(message string) *Code
- func (c *Code) WithRedirect(to string) *Code
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OK = NewCode(0, "ok") Canceled = NewCode(1, "canceled") Unknown = NewCode(2, "unknown") InvalidArgument = NewCode(3, "invalid argument") DeadlineExceeded = NewCode(4, "deadline exceeded") NotFound = NewCode(5, "not found") InternalError = NewCode(6, "internal error") IllegalInvoke = NewCode(8, "illegal invoke") IllegalRequest = NewCode(9, "illegal request") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.