Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(uri string, query map[string]string) error
- func (c *Client) Get(uri string, result *any, query map[string]string) error
- func (c *Client) GetToken() Token
- func (c *Client) Patch(uri string, payload any, query map[string]string) error
- func (c *Client) Post(uri string, payload any, query map[string]string) error
- func (c *Client) Put(uri string, payload any, query map[string]string) error
- func (c *Client) SetHost(host Host) (*Client, error)
- func (c *Client) SetRest(rest Rest) (*Client, error)
- func (c *Client) SetToken(token Token) (*Client, error)
- func (c *Client) SetUser(user User) (*Client, error)
- type Host
- type Rest
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Host ¶ added in v0.0.5
type Host struct { // 3cx FQDN FQDN string // 3cx port Port int // debug the requests (see https://github.com/go-resty/resty) Debug bool }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.