Documentation
¶
Index ¶
- type Client
- func (c *Client) Auth() error
- func (c *Client) Config() *Config
- func (c *Client) Delete(url string, resp interface{}) error
- func (c *Client) Do(req *http.Request, ret interface{}) error
- func (c *Client) DoWithAuth(method, url string, body, ret interface{}) error
- func (c *Client) Get(url string, resp interface{}) error
- func (c *Client) Patch(url string, body, resp interface{}) error
- func (c *Client) Post(url string, body, resp interface{}) error
- func (c *Client) Put(url string, body, resp interface{}) error
- type Config
- type Customfields
- type HTTP
- type Link
- type Links
- type Token
- type Update
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Token Token
// contains filtered or unexported fields
}
func (*Client) DoWithAuth ¶
type Config ¶
type Config struct {
User User `json:"user"`
Alias string `json:"alias"`
BaseURL *url.URL `json:"-"`
UserAgent string `json:"agent,omitempty"`
}
func FileConfig ¶
type Customfields ¶
type Token ¶
Click to show internal directories.
Click to hide internal directories.