modulepackage
0.0.0-20180609075129-794a47fedde1
Repository: https://github.com/lyy/echo-middleware.git
Documentation: pkg.go.dev
# README
echo-middleware
Echo V3 middleware
- cache: page cache for request. for now only in-memory cache
- heartbeat: get a quick /ping response to client
- nocache: set http header for no cache
- request id: set request id to request and response
# Packages
No description provided by the author
# Functions
Heartbeat endpoint middleware useful to setting up a path like `/ping` that load balancers or uptime testing external services can make a request before hitting any routes.
NoCache is a simple piece of middleware that sets a number of HTTP headers to prevent a router (or subrouter) from being cached by an upstream proxy and/or client.
NoCacheWithConfig returns a nocache middleware with config.
RequestID returns a X-Request-ID middleware.
RequestIDWithConfig returns a X-Request-ID middleware with config.
# Variables
ByteBufferPool byte buffer pool.
DefaultNoCacheConfig is the default nocache middleware config.
DefaultRequestIDConfig is the default RequestID middleware config.
# Structs
No description provided by the author
No description provided by the author