client

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 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 Client

type Client struct {
	Headers map[string]string
	Health  string

	Client *http.Client
	URL    *url.URL
}

Client struct

func New

func New(conf config.Client) (Client, error)

New client

func (*Client) Delete

func (c *Client) Delete(path string, params map[string]string) (response.Response, error)

Delete request

func (*Client) Get

func (c *Client) Get(path string, params map[string]string) (response.Response, error)

Get request

func (*Client) Post

func (c *Client) Post(path string, params map[string]string, body io.Reader) (response.Response, error)

Post request

func (*Client) Put

func (c *Client) Put(path string, params map[string]string, body io.Reader) (response.Response, error)

Put request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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