handler

package
v1.5.3 Latest Latest
Warning

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

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

Documentation

Overview

Package handler contains the handler http.Handler logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceparent

func NewTraceparent(delegate http.Handler, operation string) http.Handler

NewTraceparent creates a new http.Handler for tracing using the operation name.

Types

type Lambda

type Lambda struct {
	// Invoker to be used.
	Invoker lambda.Facade
	// FnRef of the function to be invoked.
	FnRef lambda.FnRef
	// Timeout (optional) for the request.
	Timeout time.Duration
}

Lambda for invocation.

func (*Lambda) ServeHTTP

func (r *Lambda) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type Traceparent

type Traceparent struct {
	Delegate http.Handler
	Prop     propagation.TextMapPropagator
}

Traceparent for traceparent in http.Request.

func (*Traceparent) ServeHTTP

func (t *Traceparent) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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