client

package
v1.45.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("armory-http",
	fx.Provide(func(params authenticatedHTTPClientParameters) *http.Client {
		return NewAuthenticatedHTTPClient(params.Identity, params.Tracing)
	}),
)

Functions

func NewAuthenticatedHTTPClient

func NewAuthenticatedHTTPClient(supplier tokenSupplier, tracingConfig opentelemetry.Configuration) *http.Client

NewAuthenticatedHTTPClient creates an http.Client that propagates OpenTelemetry trace headers and authenticates its requests with a bearer token header.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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