config

package
v0.0.0-...-b586aa6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const Version = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type CaTransport

type CaTransport struct {
	http.RoundTripper
	AuthCred string
}

func NewCaTransport

func NewCaTransport(authCred string, roundTripper http.RoundTripper) *CaTransport

func (*CaTransport) RoundTrip

func (this *CaTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Config

type Config struct {
	BaseURL     *url.URL
	CaTransport *CaTransport
	HttpClient  *http.Client
}
var Default *Config

func New

func New(authCred string, url *url.URL, transport *http.Transport) *Config

func NewDefault

func NewDefault(authCred string) *Config

Jump to

Keyboard shortcuts

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