Documentation
¶
Index ¶
- func IsAdminError(err error) bool
- type Client
- func (c *Client) Delete(endpoint string) error
- func (c *Client) DeleteWithContext(ctx context.Context, endpoint string) error
- func (c *Client) DeleteWithQueryParams(endpoint string, params map[string]string) error
- func (c *Client) DeleteWithQueryParamsWithContext(ctx context.Context, endpoint string, params map[string]string) error
- func (c *Client) Get(endpoint string, obj interface{}) error
- func (c *Client) GetWithContext(ctx context.Context, endpoint string, obj interface{}) error
- func (c *Client) GetWithOptions(endpoint string, obj interface{}, params map[string]string, decode bool, ...) ([]byte, error)
- func (c *Client) GetWithOptionsWithContext(ctx context.Context, endpoint string, obj interface{}, ...) ([]byte, error)
- func (c *Client) GetWithQueryParams(endpoint string, obj interface{}, params map[string]string, decode bool) ([]byte, error)
- func (c *Client) GetWithQueryParamsWithContext(ctx context.Context, endpoint string, obj interface{}, ...) ([]byte, error)
- func (c *Client) MakeRequest(method, endpoint string) (*http.Response, error)
- func (c *Client) MakeRequestWithContext(ctx context.Context, method, endpoint string) (*http.Response, error)
- func (c *Client) MakeRequestWithURL(method string, urlOpt *url.URL) (*http.Response, error)
- func (c *Client) MakeRequestWithURLWithContext(ctx context.Context, method string, urlOpt *url.URL) (*http.Response, error)
- func (c *Client) Post(endpoint string, in interface{}) error
- func (c *Client) PostWithContext(ctx context.Context, endpoint string, in interface{}) error
- func (c *Client) PostWithMultiPart(endpoint string, in interface{}, body io.Reader, contentType string) error
- func (c *Client) PostWithMultiPartWithContext(ctx context.Context, endpoint string, in interface{}, body io.Reader, ...) error
- func (c *Client) PostWithObj(endpoint string, in, obj interface{}) error
- func (c *Client) PostWithObjWithContext(ctx context.Context, endpoint string, in, obj interface{}) error
- func (c *Client) PostWithQueryParams(endpoint string, in interface{}, params map[string]string) error
- func (c *Client) PostWithQueryParamsWithContext(ctx context.Context, endpoint string, in interface{}, params map[string]string) error
- func (c *Client) Put(endpoint string, in interface{}) error
- func (c *Client) PutWithContext(ctx context.Context, endpoint string, in interface{}) error
- func (c *Client) PutWithCustomMediaType(endpoint string, in, obj interface{}, params map[string]string, ...) error
- func (c *Client) PutWithCustomMediaTypeWithContext(ctx context.Context, endpoint string, in, obj interface{}, ...) error
- func (c *Client) PutWithMultiPart(endpoint string, body io.Reader, contentType string) error
- func (c *Client) PutWithMultiPartWithContext(ctx context.Context, endpoint string, body io.Reader, contentType string) error
- func (c *Client) PutWithQueryParams(endpoint string, in, obj interface{}, params map[string]string) error
- func (c *Client) PutWithQueryParamsWithContext(ctx context.Context, endpoint string, in, obj interface{}, ...) error
- type Error
- type MediaType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAdminError ¶
Types ¶
type Client ¶
Client is a base client that is used to make http request to the ServiceURL
func (*Client) DeleteWithContext ¶ added in v0.17.0
func (*Client) DeleteWithQueryParams ¶
func (*Client) DeleteWithQueryParamsWithContext ¶ added in v0.17.0
func (*Client) GetWithContext ¶ added in v0.17.0
func (*Client) GetWithOptions ¶
func (*Client) GetWithOptionsWithContext ¶ added in v0.17.0
func (*Client) GetWithQueryParams ¶
func (*Client) GetWithQueryParamsWithContext ¶ added in v0.17.0
func (*Client) MakeRequest ¶
MakeRequest can make a simple request and handle the response by yourself
func (*Client) MakeRequestWithContext ¶ added in v0.17.0
func (c *Client) MakeRequestWithContext(ctx context.Context, method, endpoint string) (*http.Response, error)
MakeRequestWithContext can make a simple request and handle the response by yourself
func (*Client) MakeRequestWithURL ¶ added in v0.13.0
func (*Client) MakeRequestWithURLWithContext ¶ added in v0.17.0
func (*Client) PostWithContext ¶ added in v0.17.0
func (*Client) PostWithMultiPart ¶
func (*Client) PostWithMultiPartWithContext ¶ added in v0.17.0
func (*Client) PostWithObj ¶
func (*Client) PostWithObjWithContext ¶ added in v0.17.0
func (*Client) PostWithQueryParams ¶
func (*Client) PostWithQueryParamsWithContext ¶ added in v0.17.0
func (*Client) PutWithContext ¶ added in v0.17.0
func (*Client) PutWithCustomMediaType ¶ added in v0.13.0
func (*Client) PutWithCustomMediaTypeWithContext ¶ added in v0.17.0
func (*Client) PutWithMultiPart ¶
func (*Client) PutWithMultiPartWithContext ¶ added in v0.17.0
func (*Client) PutWithQueryParams ¶
Click to show internal directories.
Click to hide internal directories.