Documentation
¶
Index ¶
- type HttpClient
- func (c *HttpClient) Delete(url string, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) FetchToken(stage, username, password string) error
- func (c *HttpClient) Get(url string, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) Post(url string, in interface{}, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) Put(url string, in interface{}, out interface{}) (*HttpResponse, error)
- type HttpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func New ¶
func New() *HttpClient
func NewWithToken ¶
func NewWithToken(token string) *HttpClient
func (*HttpClient) Delete ¶
func (c *HttpClient) Delete(url string, out interface{}) (*HttpResponse, error)
func (*HttpClient) FetchToken ¶
func (c *HttpClient) FetchToken(stage, username, password string) error
func (*HttpClient) Get ¶
func (c *HttpClient) Get(url string, out interface{}) (*HttpResponse, error)
func (*HttpClient) Post ¶
func (c *HttpClient) Post(url string, in interface{}, out interface{}) (*HttpResponse, error)
func (*HttpClient) Put ¶
func (c *HttpClient) Put(url string, in interface{}, out interface{}) (*HttpResponse, error)
Click to show internal directories.
Click to hide internal directories.