middleware

package
Version: v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package middleware contains default middleware implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerMiddleware

type LoggerMiddleware struct {
	HexOutput bool `mapstructure:"hex_output"`
	// contains filtered or unexported fields
}

LoggerMiddleware is middleware that will log all request/responses at a configured level

func (*LoggerMiddleware) HandleEvent

func (l *LoggerMiddleware) HandleEvent(e muxy.ProxyEvent, ctx *muxy.Context)

HandleEvent takes a ProxyEvent and acts on the information provided

func (*LoggerMiddleware) Setup

func (l *LoggerMiddleware) Setup()

Setup sets up the middleware

func (LoggerMiddleware) Teardown

func (LoggerMiddleware) Teardown()

Teardown shuts down the middleware

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL