client

package
v0.0.0-...-f92f1a8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 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 Client

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

func New

func New(cfg Config) (*Client, error)

func (*Client) Create

func (c *Client) Create(id string, v interface{}) error

func (*Client) Delete

func (c *Client) Delete(p string) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(p string) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(p string, body io.Reader) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(p string, body io.Reader) (*http.Response, error)

func (*Client) Read

func (c *Client) Read(id string, v interface{}) error

func (*Client) Remove

func (c *Client) Remove(id string, v interface{}) error

func (*Client) Update

func (c *Client) Update(id string, v interface{}) error

type Config

type Config struct {
	Host string
}

func DefaultConfig

func DefaultConfig() Config

Jump to

Keyboard shortcuts

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