Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher[ HC proto.IHandlerContainer, E proto.IErrToApiProcessor, ] struct { DefaultHeaders map[string]string // contains filtered or unexported fields }
func New ¶
func New[ HC proto.IHandlerContainer, E proto.IErrToApiProcessor, ]( handlers HC, err_to_api E, def_headers map[string]string, middlewares []proto.IMiddleware, ) *Dispatcher[HC, E]
func (*Dispatcher[HC, E]) Dispatch ¶
func (self *Dispatcher[HC, E]) Dispatch(req proto.IRawRequest) types.InternalResponse
type MReqArg ¶
type MReqArg struct {
// contains filtered or unexported fields
}
func (*MReqArg) HeaderGetMany ¶ added in v0.14.0
type SeparatedMiddleware ¶
type SeparatedMiddleware struct { OnReq []func(proto.IMiddlewareReqArg) error OnResp []func(proto.IMiddlewareRespArg) error OnErr []func(proto.IMiddlewareErrArg) error }
func SeparateMiddleware ¶
func SeparateMiddleware(src []proto.IMiddleware) SeparatedMiddleware
Click to show internal directories.
Click to hide internal directories.