middlewares

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package middlewares built-in iris web application middlewares.

Index

Constants

View Source
const (
	TracingSpan    = "__OpenTelemetrySpan__"
	TracingTraceId = "X-Request-Id"
)

Variables

This section is empty.

Functions

func Catch

func Catch(i iris.Context)

Catch Catches a runtime panic on each http request.

func Error

func Error(i iris.Context)

Error render any error result.

func Tracing

func Tracing(i iris.Context)

Tracing build OpenTelemetry around each http request that compatible with OpenTracing. It's a top level middleware of all middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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