api_client

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 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 ApiClient

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

func NewApiClient

func NewApiClient() *ApiClient

func NewApiClientWithHttpClient

func NewApiClientWithHttpClient(client *http.Client) *ApiClient

func (*ApiClient) Do

func (c *ApiClient) Do(req *http.Request, response any) error

func (*ApiClient) Request

func (c *ApiClient) Request(ctx context.Context, method, url string, body any) (*http.Request, error)

func (*ApiClient) SetAuthorization

func (c *ApiClient) SetAuthorization(authorization string)

type Decoder

type Decoder interface {
	Decode(v any) error
}

Jump to

Keyboard shortcuts

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