Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorCodeInternalServer ErrorCode = 500 ErrorCodeBadRequest = 400 ErrCodeNotFoundHandler = 401 )
Variables ¶
View Source
var (
DefaultErrorPacket = NewErrorPacket(codec.DefaultCodec)
)
Functions ¶
Types ¶
type ChannelHandler ¶
type ErrorPackager ¶
type ErrorPacket ¶
type ErrorPacket struct {
// contains filtered or unexported fields
}
func NewErrorPacket ¶
func NewErrorPacket(cc codec.Codec) *ErrorPacket
type Interceptor ¶
type StreamHandler ¶
Click to show internal directories.
Click to hide internal directories.