http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateHandler

func DecorateHandler[HandlerType Handler](handler HandlerType, params Params) HandlerType

DecorateHandler with tracing for any MiddlewareUser

func NewRouter

func NewRouter(params Params) chi.Router

NewRouter constructor with middlewares for tracing

Types

type Handler

type Handler interface {
	chi.Routes
	Use(middlewares ...func(http.Handler) http.Handler)
}

Handler is a type constraint for DecorateHandler

type Params

type Params struct {
	Name      string
	ExtraOpts []trace.Option
}

Params covers all possible tracing options

func NewParams

func NewParams(name string, extraOpts ...trace.Option) Params

NewParams constructor with minimal required fields

Jump to

Keyboard shortcuts

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