Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
Types ¶
type APIError ¶
type APIError struct {
StatusCode int
Response *ErrorResponse
}
type ClientConfig ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
Message string `json:"message"`
Details string `json:"details"`
}
func (*ErrorResponse) String ¶
func (e *ErrorResponse) String() string
type RestClient ¶ added in v0.0.6
type RestClient struct {
Config ClientConfig
}
func NewRestClient ¶ added in v0.0.6
func NewRestClient(config ClientConfig) (*RestClient, error)
func (*RestClient) HandleResponse ¶ added in v0.0.6
func (c *RestClient) HandleResponse(resp *http.Response, result any) error
Click to show internal directories.
Click to hide internal directories.