Documentation ¶
Index ¶
- func CheckTimeout(ctx context.Context) error
- func LogRequest(reqID string, r *http.Request)
- func LogResponse(reqID string, r *http.Request, status int, err *ierrors.Error, ...)
- type RouteHandler
- type Router
- func (r *Router) Add(method, prefix string, handler RouteHandler, exact bool)
- func (r *Router) GET(prefix string, handler RouteHandler, exact bool)
- func (r *Router) HEAD(prefix string, handler RouteHandler, exact bool)
- func (r *Router) OPTIONS(prefix string, handler RouteHandler, exact bool)
- func (r *Router) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTimeout ¶
func LogRequest ¶
Types ¶
type RouteHandler ¶
type RouteHandler func(string, http.ResponseWriter, *http.Request)
type Router ¶
type Router struct { Routes []*route HealthHandler RouteHandler // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.