client

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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(NewAuthenticatedHTTPClient),
)

Functions

func NewAuthenticatedHTTPClient

func NewAuthenticatedHTTPClient(params AuthenticatedClientParameters) *http.Client

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

Types

type AuthenticatedClientParameters

type AuthenticatedClientParameters struct {
	fx.In

	Identity *oidc.AccessTokenSupplier
	Tracing  opentelemetry.Configuration `optional:"true"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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