cmd

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = HTTPClient{Client: &http.Client{}}

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

type HTTPClient

type HTTPClient struct {
	*http.Client
}

func (*HTTPClient) Delete

func (client *HTTPClient) Delete(path string) error

func (*HTTPClient) DoJSON

func (client *HTTPClient) DoJSON(req *http.Request, dest interface{}) error

func (*HTTPClient) GetTo

func (client *HTTPClient) GetTo(path string, dest interface{}) error

func (*HTTPClient) PostTo

func (client *HTTPClient) PostTo(path string, payload interface{}, dest interface{}) error

Jump to

Keyboard shortcuts

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