Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a dp-search-query client which can be used to make requests to the server
type ErrInvalidSearchResponse ¶
type ErrInvalidSearchResponse struct {
// contains filtered or unexported fields
}
ErrInvalidSearchResponse is returned when the dp-search-query does not respond with a valid status
func NewSearchErrorResponse ¶
func NewSearchErrorResponse(resp *http.Response, uri string) (e *ErrInvalidSearchResponse)
NewSearchErrorResponse creates an error response
func (ErrInvalidSearchResponse) Code ¶
func (e ErrInvalidSearchResponse) Code() int
Code returns the status code received from dp-search-query if an error is returned
func (ErrInvalidSearchResponse) Error ¶
func (e ErrInvalidSearchResponse) Error() string
Error should be called by the user to print out the stringified version of the error
Click to show internal directories.
Click to hide internal directories.