Discover Packages
bitbucket.org/sweetbridge/oracles
go-lib
middleware
package
Version:
v0.0.0-...-086ef7a
Opens a new window with list of versions in this module.
Published: Jun 12, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func ErrorToStatusError(c *routing.Context) error
ErrorToStatusError handles error and convert it's to routing.HTTPError if possible.
The HTTPError structure holds the error status.
LogTrace tracks the request HTTP info and time.
It also logs the server errors.
func StdRouter(prefix string ) (*routing.Router, *routing.RouteGroup)
StdRouter defines standard, default router
prefix is the routing group which will be use in the service. The leading `/` is added
automatically if absent in the prefix.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.