Documentation ¶
Index ¶
- Variables
- func InternalServerError(id, format string, a ...interface{}) error
- func New(id string, code int32, detail string) error
- func NotFound(id, format string, a ...interface{}) error
- func Timeout(id, format string, a ...interface{}) error
- func UnsupportedCodec(id string, a ...interface{}) error
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrShutdown = errors.New("connection is shut down") ErrUnsupportedCodec = errors.New("unsupported codec") ErrUnvailableService = errors.New("Unvailable Service") )
ErrShutdown connection is closed.
Functions ¶
func InternalServerError ¶
InternalServerError generates a 500 error.
func UnsupportedCodec ¶
Types ¶
type Error ¶
type Error struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.