common

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPConfig

type HTTPConfig struct {
	URL string

	// SSL
	Insecure bool

	// Basic Auth
	Username string
	Password string

	// OAuth2
	OAuth2Creds clientcredentials.Config

	// Bearer Token
	BearerToken string
}

func (*HTTPConfig) Client

func (cfg *HTTPConfig) Client() *http.Client

Client prepares a http client for a given configuration.

Jump to

Keyboard shortcuts

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