Documentation ¶
Index ¶
- func AddQueryToPath(path string, query interface{}) (string, error)
- func BuildAPIPath(parts ...interface{}) (string, error)
- func CheckHTTPResponse(resp *http.Response) (interface{}, error)
- func CheckHTTPResponseWithCursor(resp *http.Response) (interface{}, *string, error)
- func IsPathValid(path string) bool
- func ValidateQueryParams(query interface{}, validators map[string]func(interface{}) bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddQueryToPath ¶
AddQueryToPath adds the model as a JSON-encoded query parameter to the path and returns the new path.
func BuildAPIPath ¶
func CheckHTTPResponse ¶
receive http response, check error code status, if good return json of resp.Body else return error
func CheckHTTPResponseWithCursor ¶
receive http response, check error code status, if good return json of resp.Body else return error
func IsPathValid ¶
Check if the constructed path matches any of the allowed path patterns
func ValidateQueryParams ¶
ValidateQueryParams validates the query parameters based on the provided validators.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.