Documentation ¶
Index ¶
- Variables
- type HTTPClient
- type StatusError
- type WeDeploy
- func (w *WeDeploy) Aggregate(ai ...interface{}) *WeDeploy
- func (w *WeDeploy) Auth(args ...string) *WeDeploy
- func (w *WeDeploy) Body(body io.Reader) *WeDeploy
- func (w *WeDeploy) Context() context.Context
- func (w *WeDeploy) Count() *WeDeploy
- func (w *WeDeploy) DecodeJSON(class interface{}) (err error)
- func (w *WeDeploy) Delete() error
- func (w *WeDeploy) Filter(ai ...interface{}) *WeDeploy
- func (w *WeDeploy) Form(key, value string) *WeDeploy
- func (w *WeDeploy) Get() error
- func (w *WeDeploy) Head() error
- func (w *WeDeploy) Header(key, value string) *WeDeploy
- func (w *WeDeploy) Highlight(field string) *WeDeploy
- func (w *WeDeploy) Limit(limit int) *WeDeploy
- func (w *WeDeploy) Offset(offset int) *WeDeploy
- func (w *WeDeploy) Param(key, value string) *WeDeploy
- func (w *WeDeploy) Params() url.Values
- func (w *WeDeploy) Patch() error
- func (w *WeDeploy) Path(paths ...string) *WeDeploy
- func (w *WeDeploy) Post() error
- func (w *WeDeploy) Put() error
- func (w *WeDeploy) SetContext(ctx context.Context)
- func (w *WeDeploy) Sort(field string, direction ...string) *WeDeploy
- func (w *WeDeploy) Timeout(timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version of Go API Client for WeDeploy Project Version = "master" // UserAgent of the WeDeploy wedeploy-sdk-go client UserAgent = "WeDeploy/" + Version + " (+https://wedeploy.com)" )
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient of the library
func NewHTTPClient ¶
func NewHTTPClient() *HTTPClient
NewHTTPClient to use an alternative HTTP Client
func (*HTTPClient) SetHTTP ¶
func (h *HTTPClient) SetHTTP(hc *http.Client)
SetHTTP sets the default HTTP Client to use
type StatusError ¶
type StatusError struct {
Code int
}
StatusError is used for HTTP status code >= 400
func (StatusError) Error ¶
func (s StatusError) Error() string
type WeDeploy ¶
type WeDeploy struct { ID int URL string Time time.Time Query *query.Builder FormValues *url.Values Headers http.Header RequestBody io.Reader Request *http.Request Response *http.Response // contains filtered or unexported fields }
WeDeploy is the structure for a WeDeploy query
func (*WeDeploy) DecodeJSON ¶
DecodeJSON decodes a JSON response
func (*WeDeploy) Param ¶
Param sets a query string param to the Request URL Check TestParamParsingErrorSilentFailure if you find unexpected result
func (*WeDeploy) Params ¶
Params gets the params from the Request URL Check TestParamsParsingErrorSilentFailure if you find unexpected result
func (*WeDeploy) SetContext ¶
SetContext for the request
Click to show internal directories.
Click to hide internal directories.