httpclient

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	HTTPClient        *http.Client
	PublicKey         string
	SecretKey         string
	URI               string
	LeveledLogger     checkout.LeveledLoggerInterface
	MaxNetworkRetries int64

	BearerAuthentication bool
	// contains filtered or unexported fields
}

HTTPClient ...

func GetClient

func GetClient() *HTTPClient

GetClient ...

func NewClient

func NewClient(config checkout.Config) *HTTPClient

NewClient ...

func (*HTTPClient) Delete

func (c *HTTPClient) Delete(path string) (*checkout.StatusResponse, error)

Delete ...

func (*HTTPClient) Download

func (c *HTTPClient) Download(path string) (resp *checkout.StatusResponse, err error)

Download -

func (*HTTPClient) Get

func (c *HTTPClient) Get(path string) (*checkout.StatusResponse, error)

Get ...

func (*HTTPClient) NewRequest

func (c *HTTPClient) NewRequest(method, path string, body interface{}) (*http.Request, error)

NewRequest ...

func (*HTTPClient) Patch

func (c *HTTPClient) Patch(path string, body interface{}) (*checkout.StatusResponse, error)

Patch ...

func (*HTTPClient) Post

func (c *HTTPClient) Post(path string, body interface{}, params *checkout.Params) (*checkout.StatusResponse, error)

Post ...

func (*HTTPClient) Put

func (c *HTTPClient) Put(path string, body interface{}) (*checkout.StatusResponse, error)

Put ...

func (*HTTPClient) Upload

func (c *HTTPClient) Upload(path string, boundary string, body *bytes.Buffer) (resp *checkout.StatusResponse, err error)

Upload -

Jump to

Keyboard shortcuts

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