Documentation ¶
Index ¶
- func PathParam(r *http.Request, name string) string
- type RouterAdapter
- func (rt *RouterAdapter) HandlerFunc(method, path string, handler http.HandlerFunc)
- func (rt *RouterAdapter) HttpHandlerFunc(method, path string, handler mrserver.HttpHandlerFunc)
- func (rt *RouterAdapter) Register(controllers ...mrserver.HttpController)
- func (rt *RouterAdapter) RegisterMiddleware(handlers ...mrserver.HttpMiddleware)
- func (rt *RouterAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RouterAdapter ¶
type RouterAdapter struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger mrlog.Logger, handlerAdapterFunc mrserver.HttpHandlerAdapterFunc, ) *RouterAdapter
func (*RouterAdapter) HandlerFunc ¶
func (rt *RouterAdapter) HandlerFunc(method, path string, handler http.HandlerFunc)
func (*RouterAdapter) HttpHandlerFunc ¶
func (rt *RouterAdapter) HttpHandlerFunc(method, path string, handler mrserver.HttpHandlerFunc)
func (*RouterAdapter) Register ¶
func (rt *RouterAdapter) Register(controllers ...mrserver.HttpController)
func (*RouterAdapter) RegisterMiddleware ¶
func (rt *RouterAdapter) RegisterMiddleware(handlers ...mrserver.HttpMiddleware)
func (*RouterAdapter) ServeHTTP ¶
func (rt *RouterAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.