Documentation
¶
Index ¶
- Constants
- type ImproperError
- type RestClient
- func (c *RestClient) DeleteJSON(ctx context.Context, pathSegments []string, queryParams url.Values, ...) (*http.Response, error)
- func (c *RestClient) GetJSON(ctx context.Context, pathSegments []string, queryParams url.Values, ...) (*http.Response, error)
- func (c *RestClient) ParseJSON(ctx context.Context, response *http.Response, v any) error
- func (c *RestClient) PatchJSON(ctx context.Context, pathSegments []string, queryParams url.Values, body any, ...) (*http.Response, error)
- func (c *RestClient) PostJSON(ctx context.Context, pathSegments []string, queryParams url.Values, body any, ...) (*http.Response, error)
- func (c *RestClient) PutJSON(ctx context.Context, pathSegments []string, queryParams url.Values, body any, ...) (*http.Response, error)
- func (c *RestClient) UnwrapError(response *http.Response) (err error)
- type WrappedError
- type WrappedImproperError
Constants ¶
View Source
const (
ApiVersion70 = "7.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImproperError ¶
type ImproperError struct {
Message *string `json:"Message,omitempty"`
}
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
func NewRestClient ¶
func NewRestClient(baseUrl string, authorization string, providerVersion string) *RestClient
func (*RestClient) DeleteJSON ¶
func (*RestClient) UnwrapError ¶
func (c *RestClient) UnwrapError(response *http.Response) (err error)
type WrappedError ¶
type WrappedError struct { ExceptionId *string `json:"$id,omitempty"` InnerError *WrappedError `json:"innerException,omitempty"` Message *string `json:"message,omitempty"` TypeName *string `json:"typeName,omitempty"` TypeKey *string `json:"typeKey,omitempty"` ErrorCode *int `json:"errorCode,omitempty"` EventId *int `json:"eventId,omitempty"` CustomProperties *map[string]interface{} `json:"customProperties,omitempty"` StatusCode *int }
func (WrappedError) Error ¶
func (e WrappedError) Error() string
type WrappedImproperError ¶
type WrappedImproperError struct { Count *int `json:"count,omitempty"` Value *ImproperError `json:"value,omitempty"` }
Click to show internal directories.
Click to hide internal directories.