api

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token string

Token set by cli

Functions

func Do

func Do(req *http.Request, v interface{}) (*http.Response, error)

Do sends an API request and returns the API response.

func Upload

func Upload(path string, body interface{}) (*http.Request, error)

Upload creates a request to send JSON to the server. Only accepts data that can be JSON marshalled.

func UploadFile

func UploadFile(path, name string, file io.Reader) (*http.Request, error)

UploadFile uploads a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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