middleware

package
v0.0.0-...-086ef7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorToStatusError

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.

func LogTrace

func LogTrace(c *routing.Context) error

LogTrace tracks the request HTTP info and time. It also logs the server errors.

func StdRouter

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL