custommiddleware

package
v0.0.0-...-ac624b7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package custommiddleware implements echo middleware

This file was orignally copied from https://github.com/bakatz/echo-logrusmiddleware which was out of date. Updated it to handle new echo interfaces as well as making Hook() accept a logger instance to use in the closure (so that loggly hooks are used) ---- TS (29 Oct 2018 08:50:01 PM)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hook

func Hook(level int) echo.MiddlewareFunc

Hook returns echo Middleware that can be "Use()"d by an echo server. It accepts a pre-configured Logger (unlike the original version)

Types

This section is empty.

Jump to

Keyboard shortcuts

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