client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 21 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 {
	// contains filtered or unexported fields
}

func New

func New(config *config.ClientConfig) *Client

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, req *Request, reply interface{}) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, req *Request, reply interface{}) error

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method string, req *Request, reply interface{}) (*resty.Request, error)

func (*Client) Post

func (c *Client) Post(ctx context.Context, req *Request, reply interface{}) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, req *Request, reply interface{}) error

type Request

type Request struct {
	URI         string
	QueryParams url.Values
	Body        interface{}
	PathParams  map[string]string
}

Jump to

Keyboard shortcuts

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