httpClient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(host, username, password string, opts ...Option) (*promHttpClient, error)

Types

type HttpDoer

type HttpDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithHttpClient

func WithHttpClient(c HttpDoer) Option

Jump to

Keyboard shortcuts

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