Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Delete(path string, token string) (*http.Response, error)
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) Get(path string, token string) (*http.Response, error)
- func (c *Client) Head(path string, token string) (*http.Response, error)
- func (c *Client) Post(path string, token string, body io.Reader) (*http.Response, error)
- func (c *Client) Put(path string, token string, body io.Reader) (*http.Response, error)
- func (c *Client) Request(verb string, path string, token string, body io.Reader) (*http.Request, error)
Constants ¶
View Source
const AGENT = "gdc-client/%s (%s %s) %s (%s)"
View Source
const RESOURCE = "https://%s:%d%s"
Variables ¶
View Source
var Version = "dev"
NOTE This variable will be replaced at travis build time with the tag currently pointing to HEAD in the git repo. See the .travis-ci.yml for specifics on how it is built.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.