client

package
v0.0.0-...-3249ca6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 7 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 interface {
	Execute(method string, url *url.URL, body interface{}) (
		*http.Response,
		error,
	)
}

func NewHttpClient

func NewHttpClient(basePath string) HttpClient

type HttpClientImpl

type HttpClientImpl struct {
	*http.Client
	// contains filtered or unexported fields
}

func (*HttpClientImpl) Execute

func (c *HttpClientImpl) Execute(
	method string, url *url.URL,
	body interface{},
) (*http.Response, error)

func (*HttpClientImpl) SetToken

func (c *HttpClientImpl) SetToken(token string)

Jump to

Keyboard shortcuts

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