Documentation ¶
Index ¶
- type JsonService
- func (svc *JsonService) Delete(endpoint string, body interface{}, result interface{}) (*http.Response, error)
- func (svc *JsonService) Get(endpoint string, result interface{}) (*http.Response, error)
- func (svc *JsonService) InjectRequest(action RequestSite)
- func (svc *JsonService) Post(endpoint string, body interface{}, result interface{}) (*http.Response, error)
- func (svc *JsonService) Put(endpoint string, id string, body interface{}, result interface{}) (*http.Response, error)
- type RequestSigner
- type RequestSite
- type ResponseError
- type ResponseSite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonService ¶
type JsonService struct {
// contains filtered or unexported fields
}
func NewJsonService ¶
func NewJsonService(url string, client *http.Client) *JsonService
func (*JsonService) Delete ¶
func (svc *JsonService) Delete(endpoint string, body interface{}, result interface{}) (*http.Response, error)
func (*JsonService) Get ¶
func (svc *JsonService) Get(endpoint string, result interface{}) (*http.Response, error)
func (*JsonService) InjectRequest ¶
func (svc *JsonService) InjectRequest(action RequestSite)
type ResponseError ¶
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.