Documentation
¶
Overview ¶
Package httpserver http errors CODE GENERATED AUTOMATICALLY THIS FILE COULD BE EDITED BY HANDS
Package httpserver http handler CODE GENERATED AUTOMATICALLY THIS FILE COULD BE EDITED BY HANDS
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFastHTTPRouter ¶
func MakeFastHTTPRouter(handlerSettings []*HandlerSettings) *fasthttprouter.Router
MakeFastHTTPRouter ...
Types ¶
type ErrorBody ¶
type ErrorBody struct {
Data string `json:"data"`
Error bool `json:"error"`
ErrorText string `json:"errorText"`
}
ErrorBody ...
func (ErrorBody) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (ErrorBody) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*ErrorBody) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ErrorBody) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ErrorProcessor ¶
type ErrorProcessor interface {
Encode(ctx context.Context, r *fasthttp.Response, err error)
Decode(r *fasthttp.Response) error
}
ErrorProcessor ...
func NewErrorProcessor ¶
func NewErrorProcessor(defaultCode int, defaultMessage string) ErrorProcessor
NewErrorProcessor ...
type HandlerSettings ¶
type HandlerSettings struct {
Path string
Method string
Handler fasthttp.RequestHandler
}
HandlerSettings ...
Click to show internal directories.
Click to hide internal directories.