api

package
v0.0.0-...-4dbf927 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthTransport

type BasicAuthTransport struct {
	Username  string
	Password  string
	Transport *http.Transport
}

func NewBasicAuthTransport

func NewBasicAuthTransport(credentials CustomMetricsCredentials) *BasicAuthTransport

func (*BasicAuthTransport) Client

func (bat *BasicAuthTransport) Client() *http.Client

func (BasicAuthTransport) RoundTrip

func (bat BasicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)

type CustomMetricsCredentials

type CustomMetricsCredentials struct {
	Username string `mapstructure:"username" json:"username"`
	Password string `mapstructure:"password" json:"password"`
	URL      string `mapstructure:"url" json:"url"`
	MtlsURL  string `mapstructure:"mtls_url" json:"mtls_url"`
}

func (CustomMetricsCredentials) BasicAuthentication

func (c CustomMetricsCredentials) BasicAuthentication(ctx context.Context, operationName string) (BasicAuthentication, error)

Jump to

Keyboard shortcuts

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