Versions in this module Expand all Collapse all v2 v2.0.1 Nov 7, 2022 v2.0.0 Nov 7, 2022 Changes in this version + var ContextAPIKeys = contextKey("apiKeys") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextHttpSignatureAuth = contextKey("httpsignature") + var ContextOAuth2 = contextKey("token") + var ContextOperationServerIndices = contextKey("serverOperationIndices") + var ContextOperationServerVariables = contextKey("serverOperationVariables") + var ContextServerIndex = contextKey("serverIndex") + var ContextServerVariables = contextKey("serverVariables") + func CacheExpires(r *http.Response) time.Time + func PtrBool(v bool) *bool + func PtrFloat32(v float32) *float32 + func PtrFloat64(v float64) *float64 + func PtrInt(v int) *int + func PtrInt32(v int32) *int32 + func PtrInt64(v int64) *int64 + func PtrString(v string) *string + func PtrTime(v time.Time) *time.Time + type APIClient struct + PublicApi *PublicApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type ApiGetByIDRequest struct + ApiService *PublicApiService + func (r ApiGetByIDRequest) Execute() (*IndexedData, *http.Response, error) + func (r ApiGetByIDRequest) Type_(type_ string) ApiGetByIDRequest + type ApiSearchRequest struct + ApiService *PublicApiService + func (r ApiSearchRequest) Autocomplete(autocomplete bool) ApiSearchRequest + func (r ApiSearchRequest) BoostLimit(boostLimit float32) ApiSearchRequest + func (r ApiSearchRequest) BoostRecent(boostRecent string) ApiSearchRequest + func (r ApiSearchRequest) Domain(domain []string) ApiSearchRequest + func (r ApiSearchRequest) Execute() (*PublicSearchResults, *http.Response, error) + func (r ApiSearchRequest) GroupId(groupId []int64) ApiSearchRequest + func (r ApiSearchRequest) HubdbQuery(hubdbQuery string) ApiSearchRequest + func (r ApiSearchRequest) Language(language string) ApiSearchRequest + func (r ApiSearchRequest) Length(length string) ApiSearchRequest + func (r ApiSearchRequest) Limit(limit int32) ApiSearchRequest + func (r ApiSearchRequest) MatchPrefix(matchPrefix bool) ApiSearchRequest + func (r ApiSearchRequest) Offset(offset int32) ApiSearchRequest + func (r ApiSearchRequest) PathPrefix(pathPrefix []string) ApiSearchRequest + func (r ApiSearchRequest) PopularityBoost(popularityBoost float32) ApiSearchRequest + func (r ApiSearchRequest) Property(property []string) ApiSearchRequest + func (r ApiSearchRequest) Q(q string) ApiSearchRequest + func (r ApiSearchRequest) TableId(tableId int64) ApiSearchRequest + func (r ApiSearchRequest) Type_(type_ []string) ApiSearchRequest + type BasicAuth struct + Password string + UserName string + type Configuration struct + Debug bool + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + OperationServers map[string]ServerConfigurations + Scheme string + Servers ServerConfigurations + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) + func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) + type ContentSearchResult struct + AuthorFullName *string + Category *string + CombinedId *string + Description *string + Domain string + FeaturedImageUrl *string + Id int32 + Language *string + PublishedDate *int64 + RowId *int64 + Score float32 + Subcategory *string + TableId *int64 + Tags []string + Title *string + Type string + Url string + func NewContentSearchResult(id int32, score float32, type_ string, domain string, url string) *ContentSearchResult + func NewContentSearchResultWithDefaults() *ContentSearchResult + func (o *ContentSearchResult) GetAuthorFullName() string + func (o *ContentSearchResult) GetAuthorFullNameOk() (*string, bool) + func (o *ContentSearchResult) GetCategory() string + func (o *ContentSearchResult) GetCategoryOk() (*string, bool) + func (o *ContentSearchResult) GetCombinedId() string + func (o *ContentSearchResult) GetCombinedIdOk() (*string, bool) + func (o *ContentSearchResult) GetDescription() string + func (o *ContentSearchResult) GetDescriptionOk() (*string, bool) + func (o *ContentSearchResult) GetDomain() string + func (o *ContentSearchResult) GetDomainOk() (*string, bool) + func (o *ContentSearchResult) GetFeaturedImageUrl() string + func (o *ContentSearchResult) GetFeaturedImageUrlOk() (*string, bool) + func (o *ContentSearchResult) GetId() int32 + func (o *ContentSearchResult) GetIdOk() (*int32, bool) + func (o *ContentSearchResult) GetLanguage() string + func (o *ContentSearchResult) GetLanguageOk() (*string, bool) + func (o *ContentSearchResult) GetPublishedDate() int64 + func (o *ContentSearchResult) GetPublishedDateOk() (*int64, bool) + func (o *ContentSearchResult) GetRowId() int64 + func (o *ContentSearchResult) GetRowIdOk() (*int64, bool) + func (o *ContentSearchResult) GetScore() float32 + func (o *ContentSearchResult) GetScoreOk() (*float32, bool) + func (o *ContentSearchResult) GetSubcategory() string + func (o *ContentSearchResult) GetSubcategoryOk() (*string, bool) + func (o *ContentSearchResult) GetTableId() int64 + func (o *ContentSearchResult) GetTableIdOk() (*int64, bool) + func (o *ContentSearchResult) GetTags() []string + func (o *ContentSearchResult) GetTagsOk() ([]string, bool) + func (o *ContentSearchResult) GetTitle() string + func (o *ContentSearchResult) GetTitleOk() (*string, bool) + func (o *ContentSearchResult) GetType() string + func (o *ContentSearchResult) GetTypeOk() (*string, bool) + func (o *ContentSearchResult) GetUrl() string + func (o *ContentSearchResult) GetUrlOk() (*string, bool) + func (o *ContentSearchResult) HasAuthorFullName() bool + func (o *ContentSearchResult) HasCategory() bool + func (o *ContentSearchResult) HasCombinedId() bool + func (o *ContentSearchResult) HasDescription() bool + func (o *ContentSearchResult) HasFeaturedImageUrl() bool + func (o *ContentSearchResult) HasLanguage() bool + func (o *ContentSearchResult) HasPublishedDate() bool + func (o *ContentSearchResult) HasRowId() bool + func (o *ContentSearchResult) HasSubcategory() bool + func (o *ContentSearchResult) HasTableId() bool + func (o *ContentSearchResult) HasTags() bool + func (o *ContentSearchResult) HasTitle() bool + func (o *ContentSearchResult) SetAuthorFullName(v string) + func (o *ContentSearchResult) SetCategory(v string) + func (o *ContentSearchResult) SetCombinedId(v string) + func (o *ContentSearchResult) SetDescription(v string) + func (o *ContentSearchResult) SetDomain(v string) + func (o *ContentSearchResult) SetFeaturedImageUrl(v string) + func (o *ContentSearchResult) SetId(v int32) + func (o *ContentSearchResult) SetLanguage(v string) + func (o *ContentSearchResult) SetPublishedDate(v int64) + func (o *ContentSearchResult) SetRowId(v int64) + func (o *ContentSearchResult) SetScore(v float32) + func (o *ContentSearchResult) SetSubcategory(v string) + func (o *ContentSearchResult) SetTableId(v int64) + func (o *ContentSearchResult) SetTags(v []string) + func (o *ContentSearchResult) SetTitle(v string) + func (o *ContentSearchResult) SetType(v string) + func (o *ContentSearchResult) SetUrl(v string) + func (o ContentSearchResult) MarshalJSON() ([]byte, error) + type Error struct + Category string + Context *map[string][]string + CorrelationId string + Errors []ErrorDetail + Links *map[string]string + Message string + SubCategory *string + func NewError(message string, correlationId string, category string) *Error + func NewErrorWithDefaults() *Error + func (o *Error) GetCategory() string + func (o *Error) GetCategoryOk() (*string, bool) + func (o *Error) GetContext() map[string][]string + func (o *Error) GetContextOk() (*map[string][]string, bool) + func (o *Error) GetCorrelationId() string + func (o *Error) GetCorrelationIdOk() (*string, bool) + func (o *Error) GetErrors() []ErrorDetail + func (o *Error) GetErrorsOk() ([]ErrorDetail, bool) + func (o *Error) GetLinks() map[string]string + func (o *Error) GetLinksOk() (*map[string]string, bool) + func (o *Error) GetMessage() string + func (o *Error) GetMessageOk() (*string, bool) + func (o *Error) GetSubCategory() string + func (o *Error) GetSubCategoryOk() (*string, bool) + func (o *Error) HasContext() bool + func (o *Error) HasErrors() bool + func (o *Error) HasLinks() bool + func (o *Error) HasSubCategory() bool + func (o *Error) SetCategory(v string) + func (o *Error) SetContext(v map[string][]string) + func (o *Error) SetCorrelationId(v string) + func (o *Error) SetErrors(v []ErrorDetail) + func (o *Error) SetLinks(v map[string]string) + func (o *Error) SetMessage(v string) + func (o *Error) SetSubCategory(v string) + func (o Error) MarshalJSON() ([]byte, error) + type ErrorDetail struct + Code *string + Context *map[string][]string + In *string + Message string + SubCategory *string + func NewErrorDetail(message string) *ErrorDetail + func NewErrorDetailWithDefaults() *ErrorDetail + func (o *ErrorDetail) GetCode() string + func (o *ErrorDetail) GetCodeOk() (*string, bool) + func (o *ErrorDetail) GetContext() map[string][]string + func (o *ErrorDetail) GetContextOk() (*map[string][]string, bool) + func (o *ErrorDetail) GetIn() string + func (o *ErrorDetail) GetInOk() (*string, bool) + func (o *ErrorDetail) GetMessage() string + func (o *ErrorDetail) GetMessageOk() (*string, bool) + func (o *ErrorDetail) GetSubCategory() string + func (o *ErrorDetail) GetSubCategoryOk() (*string, bool) + func (o *ErrorDetail) HasCode() bool + func (o *ErrorDetail) HasContext() bool + func (o *ErrorDetail) HasIn() bool + func (o *ErrorDetail) HasSubCategory() bool + func (o *ErrorDetail) SetCode(v string) + func (o *ErrorDetail) SetContext(v map[string][]string) + func (o *ErrorDetail) SetIn(v string) + func (o *ErrorDetail) SetMessage(v string) + func (o *ErrorDetail) SetSubCategory(v string) + func (o ErrorDetail) MarshalJSON() ([]byte, error) + type GenericOpenAPIError struct + func (e GenericOpenAPIError) Body() []byte + func (e GenericOpenAPIError) Error() string + func (e GenericOpenAPIError) Model() interface{} + type IndexedData struct + Fields map[string]IndexedField + Id string + Type string + func NewIndexedData(id string, type_ string, fields map[string]IndexedField) *IndexedData + func NewIndexedDataWithDefaults() *IndexedData + func (o *IndexedData) GetFields() map[string]IndexedField + func (o *IndexedData) GetFieldsOk() (*map[string]IndexedField, bool) + func (o *IndexedData) GetId() string + func (o *IndexedData) GetIdOk() (*string, bool) + func (o *IndexedData) GetType() string + func (o *IndexedData) GetTypeOk() (*string, bool) + func (o *IndexedData) SetFields(v map[string]IndexedField) + func (o *IndexedData) SetId(v string) + func (o *IndexedData) SetType(v string) + func (o IndexedData) MarshalJSON() ([]byte, error) + type IndexedField struct + MetadataField bool + Name string + Value map[string]interface{} + Values []map[string]interface{} + func NewIndexedField(name string, value map[string]interface{}, values []map[string]interface{}, ...) *IndexedField + func NewIndexedFieldWithDefaults() *IndexedField + func (o *IndexedField) GetMetadataField() bool + func (o *IndexedField) GetMetadataFieldOk() (*bool, bool) + func (o *IndexedField) GetName() string + func (o *IndexedField) GetNameOk() (*string, bool) + func (o *IndexedField) GetValue() map[string]interface{} + func (o *IndexedField) GetValueOk() (map[string]interface{}, bool) + func (o *IndexedField) GetValues() []map[string]interface{} + func (o *IndexedField) GetValuesOk() ([]map[string]interface{}, bool) + func (o *IndexedField) SetMetadataField(v bool) + func (o *IndexedField) SetName(v string) + func (o *IndexedField) SetValue(v map[string]interface{}) + func (o *IndexedField) SetValues(v []map[string]interface{}) + func (o IndexedField) MarshalJSON() ([]byte, error) + type NullableBool struct + func NewNullableBool(val *bool) *NullableBool + func (v *NullableBool) Set(val *bool) + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v *NullableBool) Unset() + func (v NullableBool) Get() *bool + func (v NullableBool) IsSet() bool + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableContentSearchResult struct + func NewNullableContentSearchResult(val *ContentSearchResult) *NullableContentSearchResult + func (v *NullableContentSearchResult) Set(val *ContentSearchResult) + func (v *NullableContentSearchResult) UnmarshalJSON(src []byte) error + func (v *NullableContentSearchResult) Unset() + func (v NullableContentSearchResult) Get() *ContentSearchResult + func (v NullableContentSearchResult) IsSet() bool + func (v NullableContentSearchResult) MarshalJSON() ([]byte, error) + type NullableError struct + func NewNullableError(val *Error) *NullableError + func (v *NullableError) Set(val *Error) + func (v *NullableError) UnmarshalJSON(src []byte) error + func (v *NullableError) Unset() + func (v NullableError) Get() *Error + func (v NullableError) IsSet() bool + func (v NullableError) MarshalJSON() ([]byte, error) + type NullableErrorDetail struct + func NewNullableErrorDetail(val *ErrorDetail) *NullableErrorDetail + func (v *NullableErrorDetail) Set(val *ErrorDetail) + func (v *NullableErrorDetail) UnmarshalJSON(src []byte) error + func (v *NullableErrorDetail) Unset() + func (v NullableErrorDetail) Get() *ErrorDetail + func (v NullableErrorDetail) IsSet() bool + func (v NullableErrorDetail) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + func NewNullableFloat32(val *float32) *NullableFloat32 + func (v *NullableFloat32) Set(val *float32) + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v *NullableFloat32) Unset() + func (v NullableFloat32) Get() *float32 + func (v NullableFloat32) IsSet() bool + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + func NewNullableFloat64(val *float64) *NullableFloat64 + func (v *NullableFloat64) Set(val *float64) + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v *NullableFloat64) Unset() + func (v NullableFloat64) Get() *float64 + func (v NullableFloat64) IsSet() bool + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableIndexedData struct + func NewNullableIndexedData(val *IndexedData) *NullableIndexedData + func (v *NullableIndexedData) Set(val *IndexedData) + func (v *NullableIndexedData) UnmarshalJSON(src []byte) error + func (v *NullableIndexedData) Unset() + func (v NullableIndexedData) Get() *IndexedData + func (v NullableIndexedData) IsSet() bool + func (v NullableIndexedData) MarshalJSON() ([]byte, error) + type NullableIndexedField struct + func NewNullableIndexedField(val *IndexedField) *NullableIndexedField + func (v *NullableIndexedField) Set(val *IndexedField) + func (v *NullableIndexedField) UnmarshalJSON(src []byte) error + func (v *NullableIndexedField) Unset() + func (v NullableIndexedField) Get() *IndexedField + func (v NullableIndexedField) IsSet() bool + func (v NullableIndexedField) MarshalJSON() ([]byte, error) + type NullableInt struct + func NewNullableInt(val *int) *NullableInt + func (v *NullableInt) Set(val *int) + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v *NullableInt) Unset() + func (v NullableInt) Get() *int + func (v NullableInt) IsSet() bool + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + func NewNullableInt32(val *int32) *NullableInt32 + func (v *NullableInt32) Set(val *int32) + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v *NullableInt32) Unset() + func (v NullableInt32) Get() *int32 + func (v NullableInt32) IsSet() bool + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + func NewNullableInt64(val *int64) *NullableInt64 + func (v *NullableInt64) Set(val *int64) + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v *NullableInt64) Unset() + func (v NullableInt64) Get() *int64 + func (v NullableInt64) IsSet() bool + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullablePublicSearchResults struct + func NewNullablePublicSearchResults(val *PublicSearchResults) *NullablePublicSearchResults + func (v *NullablePublicSearchResults) Set(val *PublicSearchResults) + func (v *NullablePublicSearchResults) UnmarshalJSON(src []byte) error + func (v *NullablePublicSearchResults) Unset() + func (v NullablePublicSearchResults) Get() *PublicSearchResults + func (v NullablePublicSearchResults) IsSet() bool + func (v NullablePublicSearchResults) MarshalJSON() ([]byte, error) + type NullableString struct + func NewNullableString(val *string) *NullableString + func (v *NullableString) Set(val *string) + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v *NullableString) Unset() + func (v NullableString) Get() *string + func (v NullableString) IsSet() bool + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTime struct + func NewNullableTime(val *time.Time) *NullableTime + func (v *NullableTime) Set(val *time.Time) + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v *NullableTime) Unset() + func (v NullableTime) Get() *time.Time + func (v NullableTime) IsSet() bool + func (v NullableTime) MarshalJSON() ([]byte, error) + type PublicApiService service + func (a *PublicApiService) GetByID(ctx context.Context, contentId string) ApiGetByIDRequest + func (a *PublicApiService) GetByIDExecute(r ApiGetByIDRequest) (*IndexedData, *http.Response, error) + func (a *PublicApiService) Search(ctx context.Context) ApiSearchRequest + func (a *PublicApiService) SearchExecute(r ApiSearchRequest) (*PublicSearchResults, *http.Response, error) + type PublicSearchResults struct + Limit int32 + Offset int32 + Page int32 + Results []ContentSearchResult + SearchTerm *string + Total int32 + func NewPublicSearchResults(total int32, offset int32, limit int32, results []ContentSearchResult, ...) *PublicSearchResults + func NewPublicSearchResultsWithDefaults() *PublicSearchResults + func (o *PublicSearchResults) GetLimit() int32 + func (o *PublicSearchResults) GetLimitOk() (*int32, bool) + func (o *PublicSearchResults) GetOffset() int32 + func (o *PublicSearchResults) GetOffsetOk() (*int32, bool) + func (o *PublicSearchResults) GetPage() int32 + func (o *PublicSearchResults) GetPageOk() (*int32, bool) + func (o *PublicSearchResults) GetResults() []ContentSearchResult + func (o *PublicSearchResults) GetResultsOk() ([]ContentSearchResult, bool) + func (o *PublicSearchResults) GetSearchTerm() string + func (o *PublicSearchResults) GetSearchTermOk() (*string, bool) + func (o *PublicSearchResults) GetTotal() int32 + func (o *PublicSearchResults) GetTotalOk() (*int32, bool) + func (o *PublicSearchResults) HasSearchTerm() bool + func (o *PublicSearchResults) SetLimit(v int32) + func (o *PublicSearchResults) SetOffset(v int32) + func (o *PublicSearchResults) SetPage(v int32) + func (o *PublicSearchResults) SetResults(v []ContentSearchResult) + func (o *PublicSearchResults) SetSearchTerm(v string) + func (o *PublicSearchResults) SetTotal(v int32) + func (o PublicSearchResults) MarshalJSON() ([]byte, error) + type ServerConfiguration struct + Description string + URL string + Variables map[string]ServerVariable + type ServerConfigurations []ServerConfiguration + func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) + type ServerVariable struct + DefaultValue string + Description string + EnumValues []string