Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2022 Changes in this version + const DefaultEndpoint + func UserAgent() string + func Version() string + type Answer struct + FollowUpQueries *[]Query + ID *string + Type Type + WebSearchURL *string + func (a Answer) AsAnswer() (*Answer, bool) + func (a Answer) AsBasicAnswer() (BasicAnswer, bool) + func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool) + func (a Answer) AsBasicResponse() (BasicResponse, bool) + func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool) + func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (a Answer) AsBasicThing() (BasicThing, bool) + func (a Answer) AsCreativeWork() (*CreativeWork, bool) + func (a Answer) AsErrorResponse() (*ErrorResponse, bool) + func (a Answer) AsIdentifiable() (*Identifiable, bool) + func (a Answer) AsImageObject() (*ImageObject, bool) + func (a Answer) AsMediaObject() (*MediaObject, bool) + func (a Answer) AsResponse() (*Response, bool) + func (a Answer) AsResponseBase() (*ResponseBase, bool) + func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (a Answer) AsThing() (*Thing, bool) + func (a Answer) AsTrendingVideos() (*TrendingVideos, bool) + func (a Answer) AsVideoDetails() (*VideoDetails, bool) + func (a Answer) AsVideoObject() (*VideoObject, bool) + func (a Answer) AsVideos() (*Videos, bool) + func (a Answer) MarshalJSON() ([]byte, error) + type BaseClient struct + Endpoint string + func New() BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + type BasicAnswer interface + AsAnswer func() (*Answer, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsVideos func() (*Videos, bool) + type BasicCreativeWork interface + AsBasicMediaObject func() (BasicMediaObject, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicIdentifiable interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsBasicResponse func() (BasicResponse, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsIdentifiable func() (*Identifiable, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsResponse func() (*Response, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsTrendingVideos func() (*TrendingVideos, bool) + AsVideoDetails func() (*VideoDetails, bool) + AsVideoObject func() (*VideoObject, bool) + AsVideos func() (*Videos, bool) + type BasicMediaObject interface + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicResponse interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsResponse func() (*Response, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsTrendingVideos func() (*TrendingVideos, bool) + AsVideoDetails func() (*VideoDetails, bool) + AsVideoObject func() (*VideoObject, bool) + AsVideos func() (*Videos, bool) + type BasicResponseBase interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicIdentifiable func() (BasicIdentifiable, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsBasicResponse func() (BasicResponse, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsIdentifiable func() (*Identifiable, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsResponse func() (*Response, bool) + AsResponseBase func() (*ResponseBase, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsTrendingVideos func() (*TrendingVideos, bool) + AsVideoDetails func() (*VideoDetails, bool) + AsVideoObject func() (*VideoObject, bool) + AsVideos func() (*Videos, bool) + type BasicSearchResultsAnswer interface + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsVideos func() (*Videos, bool) + type BasicThing interface + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsThing func() (*Thing, bool) + AsVideoObject func() (*VideoObject, bool) + type CreativeWork struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + Text *string + ThumbnailURL *string + Type Type + URL *string + WebSearchURL *string + func (cw *CreativeWork) UnmarshalJSON(body []byte) error + func (cw CreativeWork) AsAnswer() (*Answer, bool) + func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool) + func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool) + func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool) + func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool) + func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (cw CreativeWork) AsBasicThing() (BasicThing, bool) + func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool) + func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool) + func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool) + func (cw CreativeWork) AsImageObject() (*ImageObject, bool) + func (cw CreativeWork) AsMediaObject() (*MediaObject, bool) + func (cw CreativeWork) AsResponse() (*Response, bool) + func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool) + func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (cw CreativeWork) AsThing() (*Thing, bool) + func (cw CreativeWork) AsTrendingVideos() (*TrendingVideos, bool) + func (cw CreativeWork) AsVideoDetails() (*VideoDetails, bool) + func (cw CreativeWork) AsVideoObject() (*VideoObject, bool) + func (cw CreativeWork) AsVideos() (*Videos, bool) + func (cw CreativeWork) MarshalJSON() ([]byte, error) + type Error struct + Code ErrorCode + Message *string + MoreDetails *string + Parameter *string + SubCode ErrorSubCode + Value *string + func (e Error) MarshalJSON() ([]byte, error) + type ErrorCode string + const InsufficientAuthorization + const InvalidAuthorization + const InvalidRequest + const None + const RateLimitExceeded + const ServerError + func PossibleErrorCodeValues() []ErrorCode + type ErrorResponse struct + Errors *[]Error + ID *string + Type Type + WebSearchURL *string + func (er ErrorResponse) AsAnswer() (*Answer, bool) + func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool) + func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool) + func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool) + func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool) + func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (er ErrorResponse) AsBasicThing() (BasicThing, bool) + func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool) + func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool) + func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool) + func (er ErrorResponse) AsImageObject() (*ImageObject, bool) + func (er ErrorResponse) AsMediaObject() (*MediaObject, bool) + func (er ErrorResponse) AsResponse() (*Response, bool) + func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool) + func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (er ErrorResponse) AsThing() (*Thing, bool) + func (er ErrorResponse) AsTrendingVideos() (*TrendingVideos, bool) + func (er ErrorResponse) AsVideoDetails() (*VideoDetails, bool) + func (er ErrorResponse) AsVideoObject() (*VideoObject, bool) + func (er ErrorResponse) AsVideos() (*Videos, bool) + func (er ErrorResponse) MarshalJSON() ([]byte, error) + type ErrorSubCode string + const AuthorizationDisabled + const AuthorizationExpired + const AuthorizationMissing + const AuthorizationRedundancy + const Blocked + const HTTPNotAllowed + const NotImplemented + const ParameterInvalidValue + const ParameterMissing + const ResourceError + const UnexpectedError + func PossibleErrorSubCodeValues() []ErrorSubCode + type Freshness string + const Day + const Month + const Week + func PossibleFreshnessValues() []Freshness + type Identifiable struct + ID *string + Type Type + func (i Identifiable) AsAnswer() (*Answer, bool) + func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool) + func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool) + func (i Identifiable) AsBasicResponse() (BasicResponse, bool) + func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool) + func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (i Identifiable) AsBasicThing() (BasicThing, bool) + func (i Identifiable) AsCreativeWork() (*CreativeWork, bool) + func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool) + func (i Identifiable) AsIdentifiable() (*Identifiable, bool) + func (i Identifiable) AsImageObject() (*ImageObject, bool) + func (i Identifiable) AsMediaObject() (*MediaObject, bool) + func (i Identifiable) AsResponse() (*Response, bool) + func (i Identifiable) AsResponseBase() (*ResponseBase, bool) + func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (i Identifiable) AsThing() (*Thing, bool) + func (i Identifiable) AsTrendingVideos() (*TrendingVideos, bool) + func (i Identifiable) AsVideoDetails() (*VideoDetails, bool) + func (i Identifiable) AsVideoObject() (*VideoObject, bool) + func (i Identifiable) AsVideos() (*Videos, bool) + func (i Identifiable) MarshalJSON() ([]byte, error) + type ImageObject struct + AlternateName *string + BingID *string + ContentURL *string + Description *string + Height *int32 + HostPageURL *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + Text *string + Thumbnail *ImageObject + ThumbnailURL *string + Type Type + URL *string + WebSearchURL *string + Width *int32 + func (ioVar *ImageObject) UnmarshalJSON(body []byte) error + func (ioVar ImageObject) AsAnswer() (*Answer, bool) + func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool) + func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool) + func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool) + func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool) + func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (ioVar ImageObject) AsBasicThing() (BasicThing, bool) + func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool) + func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool) + func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool) + func (ioVar ImageObject) AsImageObject() (*ImageObject, bool) + func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool) + func (ioVar ImageObject) AsResponse() (*Response, bool) + func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool) + func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (ioVar ImageObject) AsThing() (*Thing, bool) + func (ioVar ImageObject) AsTrendingVideos() (*TrendingVideos, bool) + func (ioVar ImageObject) AsVideoDetails() (*VideoDetails, bool) + func (ioVar ImageObject) AsVideoObject() (*VideoObject, bool) + func (ioVar ImageObject) AsVideos() (*Videos, bool) + func (ioVar ImageObject) MarshalJSON() ([]byte, error) + type MediaObject struct + AlternateName *string + BingID *string + ContentURL *string + Description *string + Height *int32 + HostPageURL *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + Text *string + ThumbnailURL *string + Type Type + URL *string + WebSearchURL *string + Width *int32 + func (mo *MediaObject) UnmarshalJSON(body []byte) error + func (mo MediaObject) AsAnswer() (*Answer, bool) + func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool) + func (mo MediaObject) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (mo MediaObject) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (mo MediaObject) AsBasicMediaObject() (BasicMediaObject, bool) + func (mo MediaObject) AsBasicResponse() (BasicResponse, bool) + func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool) + func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (mo MediaObject) AsBasicThing() (BasicThing, bool) + func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool) + func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool) + func (mo MediaObject) AsIdentifiable() (*Identifiable, bool) + func (mo MediaObject) AsImageObject() (*ImageObject, bool) + func (mo MediaObject) AsMediaObject() (*MediaObject, bool) + func (mo MediaObject) AsResponse() (*Response, bool) + func (mo MediaObject) AsResponseBase() (*ResponseBase, bool) + func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (mo MediaObject) AsThing() (*Thing, bool) + func (mo MediaObject) AsTrendingVideos() (*TrendingVideos, bool) + func (mo MediaObject) AsVideoDetails() (*VideoDetails, bool) + func (mo MediaObject) AsVideoObject() (*VideoObject, bool) + func (mo MediaObject) AsVideos() (*Videos, bool) + func (mo MediaObject) MarshalJSON() ([]byte, error) + type PivotSuggestions struct + Pivot *string + Suggestions *[]Query + type Query struct + DisplayText *string + SearchLink *string + Text *string + Thumbnail *ImageObject + WebSearchURL *string + func (q Query) MarshalJSON() ([]byte, error) + type QueryContext struct + AdultIntent *bool + AlterationOverrideQuery *string + AlteredQuery *string + AskUserForLocation *bool + IsTransactional *bool + OriginalQuery *string + func (qc QueryContext) MarshalJSON() ([]byte, error) + type Response struct + ID *string + Type Type + WebSearchURL *string + func (r Response) AsAnswer() (*Answer, bool) + func (r Response) AsBasicAnswer() (BasicAnswer, bool) + func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (r Response) AsBasicMediaObject() (BasicMediaObject, bool) + func (r Response) AsBasicResponse() (BasicResponse, bool) + func (r Response) AsBasicResponseBase() (BasicResponseBase, bool) + func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (r Response) AsBasicThing() (BasicThing, bool) + func (r Response) AsCreativeWork() (*CreativeWork, bool) + func (r Response) AsErrorResponse() (*ErrorResponse, bool) + func (r Response) AsIdentifiable() (*Identifiable, bool) + func (r Response) AsImageObject() (*ImageObject, bool) + func (r Response) AsMediaObject() (*MediaObject, bool) + func (r Response) AsResponse() (*Response, bool) + func (r Response) AsResponseBase() (*ResponseBase, bool) + func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (r Response) AsThing() (*Thing, bool) + func (r Response) AsTrendingVideos() (*TrendingVideos, bool) + func (r Response) AsVideoDetails() (*VideoDetails, bool) + func (r Response) AsVideoObject() (*VideoObject, bool) + func (r Response) AsVideos() (*Videos, bool) + func (r Response) MarshalJSON() ([]byte, error) + type ResponseBase struct + Type Type + func (rb ResponseBase) AsAnswer() (*Answer, bool) + func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool) + func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (rb ResponseBase) AsBasicMediaObject() (BasicMediaObject, bool) + func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool) + func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool) + func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (rb ResponseBase) AsBasicThing() (BasicThing, bool) + func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool) + func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool) + func (rb ResponseBase) AsIdentifiable() (*Identifiable, bool) + func (rb ResponseBase) AsImageObject() (*ImageObject, bool) + func (rb ResponseBase) AsMediaObject() (*MediaObject, bool) + func (rb ResponseBase) AsResponse() (*Response, bool) + func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool) + func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (rb ResponseBase) AsThing() (*Thing, bool) + func (rb ResponseBase) AsTrendingVideos() (*TrendingVideos, bool) + func (rb ResponseBase) AsVideoDetails() (*VideoDetails, bool) + func (rb ResponseBase) AsVideoObject() (*VideoObject, bool) + func (rb ResponseBase) AsVideos() (*Videos, bool) + func (rb ResponseBase) MarshalJSON() ([]byte, error) + type SafeSearch string + const Moderate + const Off + const Strict + func PossibleSafeSearchValues() []SafeSearch + type SearchResultsAnswer struct + FollowUpQueries *[]Query + ID *string + IsFamilyFriendly *bool + TotalEstimatedMatches *int64 + Type Type + WebSearchURL *string + func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool) + func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool) + func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (sra SearchResultsAnswer) AsBasicMediaObject() (BasicMediaObject, bool) + func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool) + func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool) + func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool) + func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool) + func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool) + func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool) + func (sra SearchResultsAnswer) AsImageObject() (*ImageObject, bool) + func (sra SearchResultsAnswer) AsMediaObject() (*MediaObject, bool) + func (sra SearchResultsAnswer) AsResponse() (*Response, bool) + func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool) + func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (sra SearchResultsAnswer) AsThing() (*Thing, bool) + func (sra SearchResultsAnswer) AsTrendingVideos() (*TrendingVideos, bool) + func (sra SearchResultsAnswer) AsVideoDetails() (*VideoDetails, bool) + func (sra SearchResultsAnswer) AsVideoObject() (*VideoObject, bool) + func (sra SearchResultsAnswer) AsVideos() (*Videos, bool) + func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error) + type TextFormat string + const HTML + const Raw + func PossibleTextFormatValues() []TextFormat + type Thing struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + Type Type + URL *string + WebSearchURL *string + func (t Thing) AsAnswer() (*Answer, bool) + func (t Thing) AsBasicAnswer() (BasicAnswer, bool) + func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (t Thing) AsBasicMediaObject() (BasicMediaObject, bool) + func (t Thing) AsBasicResponse() (BasicResponse, bool) + func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool) + func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (t Thing) AsBasicThing() (BasicThing, bool) + func (t Thing) AsCreativeWork() (*CreativeWork, bool) + func (t Thing) AsErrorResponse() (*ErrorResponse, bool) + func (t Thing) AsIdentifiable() (*Identifiable, bool) + func (t Thing) AsImageObject() (*ImageObject, bool) + func (t Thing) AsMediaObject() (*MediaObject, bool) + func (t Thing) AsResponse() (*Response, bool) + func (t Thing) AsResponseBase() (*ResponseBase, bool) + func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (t Thing) AsThing() (*Thing, bool) + func (t Thing) AsTrendingVideos() (*TrendingVideos, bool) + func (t Thing) AsVideoDetails() (*VideoDetails, bool) + func (t Thing) AsVideoObject() (*VideoObject, bool) + func (t Thing) AsVideos() (*Videos, bool) + func (t Thing) MarshalJSON() ([]byte, error) + type TrendingVideos struct + BannerTiles *[]TrendingVideosTile + Categories *[]TrendingVideosCategory + ID *string + Type Type + WebSearchURL *string + func (tv TrendingVideos) AsAnswer() (*Answer, bool) + func (tv TrendingVideos) AsBasicAnswer() (BasicAnswer, bool) + func (tv TrendingVideos) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (tv TrendingVideos) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (tv TrendingVideos) AsBasicMediaObject() (BasicMediaObject, bool) + func (tv TrendingVideos) AsBasicResponse() (BasicResponse, bool) + func (tv TrendingVideos) AsBasicResponseBase() (BasicResponseBase, bool) + func (tv TrendingVideos) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (tv TrendingVideos) AsBasicThing() (BasicThing, bool) + func (tv TrendingVideos) AsCreativeWork() (*CreativeWork, bool) + func (tv TrendingVideos) AsErrorResponse() (*ErrorResponse, bool) + func (tv TrendingVideos) AsIdentifiable() (*Identifiable, bool) + func (tv TrendingVideos) AsImageObject() (*ImageObject, bool) + func (tv TrendingVideos) AsMediaObject() (*MediaObject, bool) + func (tv TrendingVideos) AsResponse() (*Response, bool) + func (tv TrendingVideos) AsResponseBase() (*ResponseBase, bool) + func (tv TrendingVideos) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (tv TrendingVideos) AsThing() (*Thing, bool) + func (tv TrendingVideos) AsTrendingVideos() (*TrendingVideos, bool) + func (tv TrendingVideos) AsVideoDetails() (*VideoDetails, bool) + func (tv TrendingVideos) AsVideoObject() (*VideoObject, bool) + func (tv TrendingVideos) AsVideos() (*Videos, bool) + func (tv TrendingVideos) MarshalJSON() ([]byte, error) + type TrendingVideosCategory struct + Subcategories *[]TrendingVideosSubcategory + Title *string + type TrendingVideosSubcategory struct + Tiles *[]TrendingVideosTile + Title *string + type TrendingVideosTile struct + Image *ImageObject + Query *Query + type Type string + const TypeAnswer + const TypeCreativeWork + const TypeErrorResponse + const TypeIdentifiable + const TypeImageObject + const TypeMediaObject + const TypeResponse + const TypeResponseBase + const TypeSearchResultsAnswer + const TypeThing + const TypeTrendingVideos + const TypeVideoDetails + const TypeVideoObject + const TypeVideos + func PossibleTypeValues() []Type + type VideoDetails struct + ID *string + RelatedVideos *VideosModule + Type Type + VideoResult *VideoObject + WebSearchURL *string + func (vd VideoDetails) AsAnswer() (*Answer, bool) + func (vd VideoDetails) AsBasicAnswer() (BasicAnswer, bool) + func (vd VideoDetails) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (vd VideoDetails) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (vd VideoDetails) AsBasicMediaObject() (BasicMediaObject, bool) + func (vd VideoDetails) AsBasicResponse() (BasicResponse, bool) + func (vd VideoDetails) AsBasicResponseBase() (BasicResponseBase, bool) + func (vd VideoDetails) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (vd VideoDetails) AsBasicThing() (BasicThing, bool) + func (vd VideoDetails) AsCreativeWork() (*CreativeWork, bool) + func (vd VideoDetails) AsErrorResponse() (*ErrorResponse, bool) + func (vd VideoDetails) AsIdentifiable() (*Identifiable, bool) + func (vd VideoDetails) AsImageObject() (*ImageObject, bool) + func (vd VideoDetails) AsMediaObject() (*MediaObject, bool) + func (vd VideoDetails) AsResponse() (*Response, bool) + func (vd VideoDetails) AsResponseBase() (*ResponseBase, bool) + func (vd VideoDetails) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (vd VideoDetails) AsThing() (*Thing, bool) + func (vd VideoDetails) AsTrendingVideos() (*TrendingVideos, bool) + func (vd VideoDetails) AsVideoDetails() (*VideoDetails, bool) + func (vd VideoDetails) AsVideoObject() (*VideoObject, bool) + func (vd VideoDetails) AsVideos() (*Videos, bool) + func (vd VideoDetails) MarshalJSON() ([]byte, error) + type VideoInsightModule string + const All + const RelatedVideos + const VideoResult + func PossibleVideoInsightModuleValues() []VideoInsightModule + type VideoLength string + const VideoLengthAll + const VideoLengthLong + const VideoLengthMedium + const VideoLengthShort + func PossibleVideoLengthValues() []VideoLength + type VideoObject struct + AllowHTTPSEmbed *bool + AllowMobileEmbed *bool + AlternateName *string + BingID *string + ContentURL *string + Description *string + EmbedHTML *string + Height *int32 + HostPageURL *string + ID *string + Image *ImageObject + IsSuperfresh *bool + MotionThumbnailID *string + MotionThumbnailURL *string + Name *string + Provider *[]BasicThing + Text *string + Thumbnail *ImageObject + ThumbnailURL *string + Type Type + URL *string + VideoID *string + ViewCount *int32 + WebSearchURL *string + Width *int32 + func (vo *VideoObject) UnmarshalJSON(body []byte) error + func (vo VideoObject) AsAnswer() (*Answer, bool) + func (vo VideoObject) AsBasicAnswer() (BasicAnswer, bool) + func (vo VideoObject) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (vo VideoObject) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (vo VideoObject) AsBasicMediaObject() (BasicMediaObject, bool) + func (vo VideoObject) AsBasicResponse() (BasicResponse, bool) + func (vo VideoObject) AsBasicResponseBase() (BasicResponseBase, bool) + func (vo VideoObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (vo VideoObject) AsBasicThing() (BasicThing, bool) + func (vo VideoObject) AsCreativeWork() (*CreativeWork, bool) + func (vo VideoObject) AsErrorResponse() (*ErrorResponse, bool) + func (vo VideoObject) AsIdentifiable() (*Identifiable, bool) + func (vo VideoObject) AsImageObject() (*ImageObject, bool) + func (vo VideoObject) AsMediaObject() (*MediaObject, bool) + func (vo VideoObject) AsResponse() (*Response, bool) + func (vo VideoObject) AsResponseBase() (*ResponseBase, bool) + func (vo VideoObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (vo VideoObject) AsThing() (*Thing, bool) + func (vo VideoObject) AsTrendingVideos() (*TrendingVideos, bool) + func (vo VideoObject) AsVideoDetails() (*VideoDetails, bool) + func (vo VideoObject) AsVideoObject() (*VideoObject, bool) + func (vo VideoObject) AsVideos() (*Videos, bool) + func (vo VideoObject) MarshalJSON() ([]byte, error) + type VideoPricing string + const VideoPricingAll + const VideoPricingFree + const VideoPricingPaid + func PossibleVideoPricingValues() []VideoPricing + type VideoQueryScenario string + const List + const SingleDominantVideo + func PossibleVideoQueryScenarioValues() []VideoQueryScenario + type VideoResolution string + const VideoResolutionAll + const VideoResolutionHD1080p + const VideoResolutionHD720p + const VideoResolutionSD480p + func PossibleVideoResolutionValues() []VideoResolution + type Videos struct + FollowUpQueries *[]Query + ID *string + IsFamilyFriendly *bool + NextOffset *int32 + PivotSuggestions *[]PivotSuggestions + QueryExpansions *[]Query + Scenario VideoQueryScenario + TotalEstimatedMatches *int64 + Type Type + Value *[]VideoObject + WebSearchURL *string + func (vVar Videos) AsAnswer() (*Answer, bool) + func (vVar Videos) AsBasicAnswer() (BasicAnswer, bool) + func (vVar Videos) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (vVar Videos) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (vVar Videos) AsBasicMediaObject() (BasicMediaObject, bool) + func (vVar Videos) AsBasicResponse() (BasicResponse, bool) + func (vVar Videos) AsBasicResponseBase() (BasicResponseBase, bool) + func (vVar Videos) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (vVar Videos) AsBasicThing() (BasicThing, bool) + func (vVar Videos) AsCreativeWork() (*CreativeWork, bool) + func (vVar Videos) AsErrorResponse() (*ErrorResponse, bool) + func (vVar Videos) AsIdentifiable() (*Identifiable, bool) + func (vVar Videos) AsImageObject() (*ImageObject, bool) + func (vVar Videos) AsMediaObject() (*MediaObject, bool) + func (vVar Videos) AsResponse() (*Response, bool) + func (vVar Videos) AsResponseBase() (*ResponseBase, bool) + func (vVar Videos) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (vVar Videos) AsThing() (*Thing, bool) + func (vVar Videos) AsTrendingVideos() (*TrendingVideos, bool) + func (vVar Videos) AsVideoDetails() (*VideoDetails, bool) + func (vVar Videos) AsVideoObject() (*VideoObject, bool) + func (vVar Videos) AsVideos() (*Videos, bool) + func (vVar Videos) MarshalJSON() ([]byte, error) + type VideosClient struct + func NewVideosClient() VideosClient + func (client VideosClient) Details(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (result VideoDetails, err error) + func (client VideosClient) DetailsPreparer(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (*http.Request, error) + func (client VideosClient) DetailsResponder(resp *http.Response) (result VideoDetails, err error) + func (client VideosClient) DetailsSender(req *http.Request) (*http.Response, error) + func (client VideosClient) Search(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (result Videos, err error) + func (client VideosClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (*http.Request, error) + func (client VideosClient) SearchResponder(resp *http.Response) (result Videos, err error) + func (client VideosClient) SearchSender(req *http.Request) (*http.Response, error) + func (client VideosClient) Trending(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (result TrendingVideos, err error) + func (client VideosClient) TrendingPreparer(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (*http.Request, error) + func (client VideosClient) TrendingResponder(resp *http.Response) (result TrendingVideos, err error) + func (client VideosClient) TrendingSender(req *http.Request) (*http.Response, error) + type VideosModule struct + Value *[]VideoObject + func (VM VideosModule) MarshalJSON() ([]byte, error)