Versions in this module Expand all Collapse all v1 v1.1.0 May 11, 2024 v1.0.9 May 6, 2024 Changes in this version + const ContextAPIKey + const ContextAccessToken + const ContextBasicAuth + const ContextOAuth2 + func CacheExpires(r *http.Response) time.Time + func CallAPI(cfg Configuration, request *http.Request) (*http.Response, error) + func Convert(from interface{}, to interface{}) error + func Deserialize(v interface{}, b []byte, contentType string) (err error) + func GetHttpClient() *http.Client + func GetHttpsClient() *http.Client + func InterceptH2CClient() + func MarshToJsonString(v interface{}) (result []string) + func MultipartDeserialize(b []byte, v interface{}, boundary string) (err error) + func MultipartEncode(v interface{}, body io.Writer) (string, error) + func MultipartSerialize(v interface{}) ([]byte, string, error) + func ParameterToString(obj interface{}, collectionFormat string) string + func PrepareRequest(ctx context.Context, cfg Configuration, path string, method string, ...) (localVarRequest *http.Request, err error) + func ProblemDetailsDataNotFound(detail string) *models.ProblemDetails + func ProblemDetailsMalformedReqSyntax(detail string) *models.ProblemDetails + func ProblemDetailsSystemFailure(detail string) *models.ProblemDetails + func ReportError(format string, a ...interface{}) error + func RestoreH2CClient() + func SelectHeaderAccept(accepts []string) string + func Serialize(v interface{}, mediaType string) ([]byte, error) + func SnssaiEqualFold(s, t models.Snssai) bool + func TypeCheckParameter(obj interface{}, expected string, name string) error + type APIKey struct + Key string + Prefix string + type BasicAuth struct + Password string + UserName string + type Configuration interface + BasePath func() string + DefaultHeader func() map[string]string + HTTPClient func() *http.Client + Host func() string + UserAgent func() string + type ContextKey string + func (c ContextKey) String() string + type GenericOpenAPIError struct + ErrorModel interface{} + ErrorStatus string + RawBody []byte + func (e GenericOpenAPIError) Body() []byte + func (e GenericOpenAPIError) Error() string + func (e GenericOpenAPIError) Model() interface{} + type MediaKind int + const MediaKindJSON + const MediaKindMultipartRelated + const MediaKindPlaintext + const MediaKindUnsupported + const MediaKindXML + func KindOfMediaType(mediaType string) MediaKind + type MultipartRelatedBinding struct + func (MultipartRelatedBinding) Bind(req *http.Request, obj interface{}) error + func (MultipartRelatedBinding) BindBody(body []byte, obj interface{}) error + func (MultipartRelatedBinding) Name() string + type MultipartRelatedRender struct + Data interface{} + func (r MultipartRelatedRender) Render(w http.ResponseWriter) (err error) + func (r MultipartRelatedRender) WriteContentType(w http.ResponseWriter) + type SupportedFeature []byte + func NewSupportedFeature(suppFeat string) (SupportedFeature, error) + func (suppoertedFeature SupportedFeature) GetFeature(n int) bool + func (suppoertedFeature SupportedFeature) NegotiateWith(incomingSuppFeat SupportedFeature) SupportedFeature + func (suppoertedFeature SupportedFeature) String() string