middleware

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 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
y or Y : Canonical URL