Documentation
¶
Index ¶
- func Delete(url string, cfg *GAxiosConfig) (*http.Response, error)
- func Get(url string, cfg *GAxiosConfig) (resp *http.Response, err error)
- func Patch(url string, payload interface{}, cfg *GAxiosConfig) (*http.Response, error)
- func Post(url string, payload interface{}, cfg *GAxiosConfig) (*http.Response, error)
- type GAxios
- type GAxiosConfig
- type GAxiosError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶ added in v0.1.3
func Delete(url string, cfg *GAxiosConfig) (*http.Response, error)
Delete issues a DELETE to the specified URL. Caller should close resp.Data when done reading from it.
func Get ¶ added in v0.1.3
func Get(url string, cfg *GAxiosConfig) (resp *http.Response, err error)
Get issues a GET to the specified URL. Caller should close resp.Data when done reading from it.
Types ¶
type GAxios ¶
type GAxios struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *GAxiosConfig) *GAxios
func (*GAxios) Delete ¶
Delete issues a DELETE to the specified URL. Caller should close resp.Data when done reading from it.
func (*GAxios) Get ¶
Get issues a GET to the specified URL. Caller should close resp.Data when done reading from it.
type GAxiosConfig ¶
Click to show internal directories.
Click to hide internal directories.