httpclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	// contains filtered or unexported fields
}

func NewAuthClient

func NewAuthClient(getToken GetToken) *AuthClient

func (*AuthClient) Do

func (a *AuthClient) Do(req *http.Request) (*http.Response, error)

func (*AuthClient) SkipSSLValidation

func (a *AuthClient) SkipSSLValidation()

type GetToken

type GetToken func() (string, error)

type TokenGetter

type TokenGetter struct {
	// contains filtered or unexported fields
}

func NewTokenGetter

func NewTokenGetter(getToken GetToken) *TokenGetter

func (*TokenGetter) Token

func (t *TokenGetter) Token() (string, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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