middleware

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package middleware contains some middlewares for access logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog(logger *accesslog.HTTPLogger) func(next http.Handler) http.Handler

AccessLog returns middleware that will log incoming requests.

func RequestWithLogEntry

func RequestWithLogEntry(r *http.Request, le accesslog.LogEntry) *http.Request

RequestWithLogEntry returns request that has a context with accesslog.HTTPLogEntry.

func UnaryServerInterceptor

func UnaryServerInterceptor(logger *accesslog.GRPCLogger) grpc.UnaryServerInterceptor

UnaryServerInterceptor will write access log to the given grpc server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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