http

package
v0.0.0-...-0c3563e Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(baseURL, apiToken string) *store

Types

type Client

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

func NewClient

func NewClient(baseUrl, token string) Client

func (Client) Delete

func (c Client) Delete(path string) error

func (Client) Get

func (c Client) Get(path string, target interface{}) error

func (Client) Post

func (c Client) Post(path string, data interface{}, target interface{}) error

func (Client) Put

func (c Client) Put(path string, data interface{}, target interface{}) error

type ResponseErrors

type ResponseErrors struct {
	Errors []string `json:"errors"`
}

Jump to

Keyboard shortcuts

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