echo

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

README

chi module

How to

$ go get github.com/tel-io/instrumentation/middleware/echo@latest
Example
import (
    emw "github.com/tel-io/instrumentation/middleware/echo"
    mw "github.com/tel-io/instrumentation/middleware/http"
)

func main(){
    tele, closer := tel.New(context.Background(), cfg)
    defer closer()
	
    
    app := echo.New()
    app.Use(emw.HTTPServerMiddlewareAll(mw.WithTel(&tele)))
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPServerMiddlewareAll

func HTTPServerMiddlewareAll(opts ...mw.Option) echo.MiddlewareFunc

HTTPServerMiddlewareAll all in one mw packet

func WrapMiddleware added in v1.2.3

func WrapMiddleware(m func(http.Handler) http.Handler) echo.MiddlewareFunc

WrapMiddleware wraps `func(http.Handler) http.Handler` into `echo.MiddlewareFunc`

Types

This section is empty.

Jump to

Keyboard shortcuts

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