preset

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthHTTPClient added in v0.0.3

func GetAuthHTTPClient(token string) *http.Client

GetAuthHTTPClient returns a HTTP client with TokenAuth + UserAgent middlewares.

func GetAuthHTTPClientWithProxy added in v0.0.7

func GetAuthHTTPClientWithProxy(proxyURL, token string) *http.Client

GetAuthHTTPClientWithProxy returns a HTTP client with TokenAuth + UserAgent + Proxy middlewares.

func GetAuthHTTPClientWithXdailiProxy

func GetAuthHTTPClientWithXdailiProxy(proxyOrder, proxySecret, token string) *http.Client

GetAuthHTTPClientWithXdailiProxy returns a HTTP client with TokenAuth + UserAgent + XdailiProxy middlewares.

func GetHTTPClientForDebug

func GetHTTPClientForDebug(log *zap.Logger) *http.Client

GetHTTPClientForDebug returns a HTTP client that dumps requests and responses in folder log.

func GetHTTPClientWithProxy added in v0.0.7

func GetHTTPClientWithProxy(proxyURL string) *http.Client

GetHTTPClientWithProxy returns a HTTP client with UserAgent + Proxy middlewares.

func GetHTTPClientWithXdailiProxy

func GetHTTPClientWithXdailiProxy(proxyOrder, proxySecret string) *http.Client

GetHTTPClientWithXdailiProxy returns a HTTP client with UserAgent + XdailiProxy middlewares.

Types

This section is empty.

Jump to

Keyboard shortcuts

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