Versions in this module Expand all Collapse all v0 v0.2.3 Jun 7, 2024 v0.2.2 Jun 1, 2024 Changes in this version + var SerializationMethodToContentType = map[string]string + func AsSecuritySource(security interface{}) func(context.Context) (interface{}, error) + func Contains(slice []string, item string) bool + func GenerateURL(_ context.Context, serverURL, path string, pathParams interface{}, ...) (string, error) + func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) + func MatchContentType(contentType string, pattern string) bool + func MatchStatusCodes(expectedCodes []string, statusCode int) bool + func PopulateHeaders(_ context.Context, req *http.Request, headers interface{}, globals interface{}) + func PopulateQueryParams(_ context.Context, req *http.Request, queryParams interface{}, ...) error + func PopulateSecurity(ctx context.Context, req *http.Request, ...) error + func ReplaceParameters(stringWithParams string, params map[string]string) string + func Retry(ctx context.Context, r Retries, action func() (*http.Response, error)) (*http.Response, error) + func SerializeRequestBody(_ context.Context, request interface{}, nullable, optional bool, ...) (io.Reader, string, error) + func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, ...) error + func UnmarshalJsonFromResponseBody(body io.Reader, out interface{}, tag string) error + type BackoffStrategy struct + Exponent float64 + InitialInterval int + MaxElapsedTime int + MaxInterval int + type Retries struct + Config *RetryConfig + StatusCodes []string + type RetryConfig struct + Backoff *BackoffStrategy + RetryConnectionErrors bool + Strategy string