Documentation ¶
Index ¶
- type Api
- func (s *Api) Base() *sling.Sling
- func (s *Api) Delete(path string, params, result interface{}) (*http.Response, error)
- func (s *Api) Get(path string, params, result interface{}) (*http.Response, error)
- func (s *Api) Patch(path string, params, result interface{}) (*http.Response, error)
- func (s *Api) Post(path string, params, result interface{}) (*http.Response, error)
- func (s *Api) Receive(decorate SlingDecorator, result *interface{}) (*http.Response, error)
- type ApiError
- type ListParams
- type NewApiParams
- type NewServiceParams
- type Params
- type ReadParams
- type Result
- type Service
- type SlingDecorator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewApi ¶
func NewApi(params *NewApiParams) *Api
type ApiError ¶
type ListParams ¶
type ListParams struct { Page interface{} `url:"page,omitempty"` PerPage interface{} `url:"per_page,omitempty"` IncludeTotals interface{} `url:"include_totals,omitempty"` ReadParams }
type NewApiParams ¶
type NewServiceParams ¶
type NewServiceParams struct {
Api *Api
}
type ReadParams ¶
type ReadParams struct { Fields interface{} `url:"fields,omitempty"` IncludeFields interface{} `url:"include_fields,omitempty"` }
Click to show internal directories.
Click to hide internal directories.