client

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 14 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 {
	Http *http.Client
	Url  *url.URL
	Ctx  context.Context
}

func NewClient

func NewClient(URL string, opts appkit.Options) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(urlpath string) error

func (*Client) Get

func (c *Client) Get(urlpath string, values interface{}) error

func (*Client) GetRaw

func (c *Client) GetRaw(urlpath string) ([]string, error)

func (*Client) Put

func (c *Client) Put(urlpath string, data interface{}) error

func (*Client) PutRaw

func (c *Client) PutRaw(urlpath string, json []byte) error

Jump to

Keyboard shortcuts

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