middlewares

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOpenTracerAgentInterceptor added in v0.0.14

func BuildOpenTracerAgentInterceptor(
	serviceName, agentHostPort string,
	operationPrefix []byte,
) (
	closeFunc func(),
	middleware gin.HandlerFunc,
	err error,
)

BuildOpenTracerAgentInterceptor create an interceptor using the jaeger agent

func BuildOpenTracerCollectorInterceptor added in v0.0.14

func BuildOpenTracerCollectorInterceptor(
	serviceName, collectorHost string,
	operationPrefix []byte,
) (
	closeFunc func(),
	middleware gin.HandlerFunc,
	err error,
)

BuildOpenTracerCollectorInterceptor create an interceptor using the jaeger collector directly

func BuildOpenTracerInterceptor added in v0.0.7

func BuildOpenTracerInterceptor(
	serviceName, agentHostPort string,
	operationPrefix []byte,
) (
	closeFunc func(),
	middleware gin.HandlerFunc,
	err error,
)

BuildOpenTracerInterceptor is an alias for BuildOpenTracerAgentInterceptor

func InitTracing added in v0.0.13

func InitTracing(serviceName string, url string) (
	tracer opentracing.Tracer,
	reporter jaeger.Reporter,
	closer io.Closer,
	err error)

InitTracing - init opentracing with use http

func NewDefaultPanicInterceptor

func NewDefaultPanicInterceptor() gin.HandlerFunc

NewDefaultPanicInterceptor returns a gin middleware with a internal.BuiltinLogger

func NewDefaultRequestInterceptor

func NewDefaultRequestInterceptor() gin.HandlerFunc

func NewPanicInterceptor

func NewPanicInterceptor(logger internal.ILogger) gin.HandlerFunc

NewPanicInterceptor returns a gin middleware

func NewRequestInterceptor

func NewRequestInterceptor(logger internal.ILogger) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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