custom

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient() (*http.Client, error)

func RegisterClientFactory

func RegisterClientFactory(factory ClientFactory)

RegisterClientFactory overrides Weep's standard config-based ConsoleMe client creation with a ClientFactory. This function will be called during the creation of all ConsoleMe clients.

func RegisterRequestPreflight

func RegisterRequestPreflight(preflight RequestPreflight)

RegisterRequestPreflight adds a RequestPreflight function which will be called in the order of registration during the creation of a ConsoleMe request.

func RunPreflightFunctions

func RunPreflightFunctions(req *http.Request) error

func UseCustom

func UseCustom() bool

Types

type ClientFactory

type ClientFactory func() (*http.Client, error)

type RequestPreflight

type RequestPreflight func(req *http.Request) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳