middleware

package
v0.0.0-...-4606e03 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpan

func GetSpan(ctx *gin.Context) (span trace.SpanContext, exists bool)

GetSpan extracts span from context.

func LoggerToES

func LoggerToES() gin.HandlerFunc

LoggerToES Log to ES

func LoggerToFile

func LoggerToFile() gin.HandlerFunc

LoggerToFile Log to File

func LoggerToMQ

func LoggerToMQ() gin.HandlerFunc

LoggerToMQ Logging to MQ

func LoggerToMongo

func LoggerToMongo() gin.HandlerFunc

LoggerToMongo Log to MongoDB

func TraceMiddleware

func TraceMiddleware() gin.HandlerFunc

TraceMiddleware init

Types

This section is empty.

Jump to

Keyboard shortcuts

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