preset

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 8 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 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

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