Documentation ¶
Index ¶
- type AccordianWidget
- type Article
- type ArticleList
- type Author
- type ChartblocksWidget
- type CosmosImporter
- type Env
- type FacebookVideoWidget
- type GalleryWidget
- type GiphyWidget
- type GoogleMapWidget
- type HtmlWidget
- type Image
- type ImageWidget
- type InfoblockWidget
- type InfogramWidget
- type InstagramWidget
- type IonoWidget
- type IssuWidget
- type JwPlayerWidget
- type OEmbedData
- type PollDaddyWidget
- type Publication
- type QuoteWidget
- type ScribdWidget
- type SoundCloudWidget
- type TextWidget
- type TwitterWidget
- type YoutubeWidget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccordianWidget ¶
type Article ¶
type Article struct { Access bool `json:"access"` Active bool `json:"active"` AdTagCustom string `json:"ad_tag_custom"` Assigned []string `json:"assigned"` Author Author `json:"author"` AuthorKeys []int64 `json:"author_keys"` Authors []string `json:"authors"` Breaking bool `json:"breaking"` CanonicalURL string `json:"canonical_url"` CommentsEnabled bool `json:"comments_enabled"` ContentType string `json:"content_type"` CountAudio int `json:"count_audio"` CountBlockquote int `json:"count_blockquote"` CountEmbeddedArticles int `json:"count_embedded_articles"` CountImage int `json:"count_image"` CountInfographic int `json:"count_infographic"` CountSocial int `json:"count_social"` CountVideo int `json:"count_video"` CountWords int `json:"count_words"` Created int64 `json:"created"` CreatedBy string `json:"created_by"` Domain string `json:"domain"` EditURL string `json:"edit_url"` EditorsChoice bool `json:"editors_choice"` EmbeddedArticlesList []int64 `json:"embedded_articles_list"` ExternalURL string `json:"external_url"` Groups []string `json:"groups"` HideInApp bool `json:"hide_in_app"` Image Image `json:"image"` ImageHeader Image `json:"image_header"` ImageThumbnail Image `json:"image_thumbnail"` Images []Image `json:"images"` Intro string `json:"intro"` IntroText string `json:"intro_text"` Key int64 `json:"key"` Keywords []string `json:"keywords"` LocationGeo string `json:"location_geo"` LocationKeywords []string `json:"location_keywords"` LocationLat string `json:"location_lat"` LocationName string `json:"location_name"` Modified int64 `json:"modified"` ModifiedUser string `json:"modified_user"` Native bool `json:"native"` Notes string `json:"notes"` OnHold bool `json:"on_hold"` Parent string `json:"parent"` PlainText string `json:"plain_text"` Priority int32 `json:"priority"` Private bool `json:"private"` PubURL string `json:"pub_url"` Published int64 `json:"published"` PushNotify bool `json:"push_notify"` ReadDuration int `json:"read_duration"` RelatedArticles interface{} `json:"related_articles"` RelatedArticlesKeys []int `json:"related_articles_keys"` Sensitive bool `json:"sensitive"` ShowAuthorCard bool `json:"show_author_card"` Slug string `json:"slug"` SlugCustom string `json:"slug_custom"` SlugOld []string `json:"slug_old"` Source string `json:"source"` SourceID string `json:"source_id"` Sponsor interface{} `json:"sponsor"` SponsorKeys []int `json:"sponsor_keys"` Status string `json:"status"` Style string `json:"style"` Summary string `json:"summary"` Syndicate bool `json:"syndicate"` SyndicateStatus string `json:"syndicate_status"` Synopsis string `json:"synopsis"` SynopsisCustom string `json:"synopsis_custom"` Tags []string `json:"tags"` Title string `json:"title"` Title2 string `json:"title2"` Title2Text string `json:"title2_text"` Title3 string `json:"title3"` Title3Text string `json:"title3_text"` TitleCustom string `json:"title_custom"` TitleListing string `json:"title_listing"` TitleListingText string `json:"title_listing_text"` TitleSectionText string `json:"title_section_text"` TitleText string `json:"title_text"` Updated int64 `json:"updated"` Weight int `json:"weight"` Section struct { ID string Link string Name string } Sections []struct { Primary bool Publication string Section string Subsection string } Subsection struct { ID string Link string Name string } Publication struct { ID string Link string Name string Primary bool } Widgets []struct { Id string Type string Data map[string]any } }
type ArticleList ¶
type ArticleList struct { ArticleIds []int64 `json:"article_ids"` ReadMoreLink string `json:"read_more_link"` Query struct { Author string `json:"author"` ContentType string `json:"contentType"` DateFrom string `json:"dateFrom"` DateTo string `json:"dateTo"` Group string `json:"group"` Limit int `json:"limit"` Offset int `json:"offset"` Page int `json:"page"` Publication string `json:"publication"` Query string `json:"query"` Sponsor string `json:"sponsor"` Tag string `json:"tag"` } }
type Author ¶
type Author struct { Active bool `json:"active"` Bio string `json:"bio"` Category string `json:"category"` Email string `json:"email"` Image Image `json:"image"` Key int64 `json:"key"` Name string `json:"name"` PublicationKey string `json:"publication_key"` Slug string `json:"slug"` Tel string `json:"tel"` Title string `json:"title"` Social struct { Facebook string `json:"facebook"` Instagram string `json:"instagram"` Linkedin string `json:"linkedin"` Twitter string `json:"twitter"` } }
type ChartblocksWidget ¶
type ChartblocksWidget struct { ID string `json:"id"` URL string `json:"url"` Meta struct { ChartName string `json:"chart_name"` Created time.Time `json:"created"` IsPublic bool `json:"isPublic"` UpdatedAt time.Time `json:"updated_at"` VersionHash string `json:"version_hash"` Creator struct { AvatarURL string `json:"avatarUrl"` ID string `json:"id"` Nickname string `json:"nickname"` Account struct { ID string `json:"id"` Name string `json:"name"` } } Images struct { Eps struct { Enabled bool `json:"enabled"` Extension string `json:"extension"` Name string `json:"name"` URL string `json:"url"` } Pdf struct { Enabled bool `json:"enabled"` Extension string `json:"extension"` Name string `json:"name"` URL string `json:"url"` } Png struct { Enabled bool `json:"enabled"` Extension string `json:"extension"` Name string `json:"name"` URL string `json:"url"` } Ps struct { Enabled bool `json:"enabled"` Extension string `json:"extension"` Name string `json:"name"` URL string `json:"url"` } Svg struct { Enabled bool `json:"enabled"` Extension string `json:"extension"` Name string `json:"name"` URL string `json:"url"` } } } }
type CosmosImporter ¶
func (*CosmosImporter) GetLogfiles ¶
func (s *CosmosImporter) GetLogfiles() ([][]byte, error)
* GetLogfiles
func (*CosmosImporter) ProcessLogfile ¶
func (s *CosmosImporter) ProcessLogfile(project *admin.Project, content []byte) []*admin.ArticleInput
* ProcessLogfile
func (*CosmosImporter) ProjectId ¶
func (s *CosmosImporter) ProjectId() string
type Env ¶
type Env struct { AppID string `json:"app_id"` Clients []string `json:"clients"` ContentTypeDefault string `json:"content_type_default"` ContentTypes []struct { Key string `json:"key"` Text string `json:"text"` } `json:"content_types"` Firebase struct { APIKey string `json:"apiKey"` AuthDomain string `json:"authDomain"` DatabaseURL string `json:"databaseURL"` MessagingSenderID string `json:"messagingSenderId"` ProjectID string `json:"projectId"` StorageBucket string `json:"storageBucket"` } `json:"firebase"` Logrocket struct { APIKey string `json:"apiKey"` } `json:"logrocket"` NovaFeeds []struct { Key string `json:"key"` Name string `json:"name"` } `json:"nova_feeds"` Publication Publication `json:"publication"` Publications []Publication `json:"publications"` Sections []struct { ID string `json:"id"` Name string `json:"name"` Sections []struct { ID string `json:"id"` Name string `json:"name"` URLKey string `json:"urlKey"` } `json:"sections,omitempty"` URLKey string `json:"urlKey"` } `json:"sections"` }
type FacebookVideoWidget ¶
type GalleryWidget ¶
type GiphyWidget ¶
type GiphyWidget struct { Gif struct { AnalyticsResponsePayload string `json:"analytics_response_payload"` BitlyGifURL string `json:"bitly_gif_url"` BitlyURL string `json:"bitly_url"` ContentURL string `json:"content_url"` EmbedURL string `json:"embed_url"` ID string `json:"id"` Images struct { Four80WStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"480w_still"` Downsized struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"downsized"` DownsizedLarge struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"downsized_large"` DownsizedMedium struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"downsized_medium"` DownsizedSmall struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Width string `json:"width"` } `json:"downsized_small"` DownsizedStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"downsized_still"` FixedHeight struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"fixed_height"` FixedHeightDownsampled struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"fixed_height_downsampled"` FixedHeightSmall struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"fixed_height_small"` FixedHeightSmallStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"fixed_height_small_still"` FixedHeightStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"fixed_height_still"` FixedWidth struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"fixed_width"` FixedWidthDownsampled struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"fixed_width_downsampled"` FixedWidthSmall struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"fixed_width_small"` FixedWidthSmallStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"fixed_width_small_still"` FixedWidthStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"fixed_width_still"` Looping struct { Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` } `json:"looping"` Original struct { Frames string `json:"frames"` Hash string `json:"hash"` Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Size string `json:"size"` URL string `json:"url"` Webp string `json:"webp"` WebpSize string `json:"webp_size"` Width string `json:"width"` } `json:"original"` OriginalMp4 struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Width string `json:"width"` } `json:"original_mp4"` OriginalStill struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"original_still"` Preview struct { Height string `json:"height"` Mp4 string `json:"mp4"` Mp4Size string `json:"mp4_size"` Width string `json:"width"` } `json:"preview"` PreviewGif struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"preview_gif"` PreviewWebp struct { Height string `json:"height"` Size string `json:"size"` URL string `json:"url"` Width string `json:"width"` } `json:"preview_webp"` } ImportDatetime string `json:"import_datetime"` IsSticker int `json:"is_sticker"` Rating string `json:"rating"` Slug string `json:"slug"` Source string `json:"source"` SourcePostURL string `json:"source_post_url"` SourceTld string `json:"source_tld"` Title string `json:"title"` TrendingDatetime string `json:"trending_datetime"` Type string `json:"type"` URL string `json:"url"` User struct { AvatarURL string `json:"avatar_url"` BannerImage string `json:"banner_image"` BannerURL string `json:"banner_url"` Description string `json:"description"` DisplayName string `json:"display_name"` InstagramURL string `json:"instagram_url"` IsVerified bool `json:"is_verified"` ProfileURL string `json:"profile_url"` Username string `json:"username"` WebsiteURL string `json:"website_url"` } Analytics struct { Onclick struct { URL string `json:"url"` } Onload struct { URL string `json:"url"` } Onsent struct { URL string `json:"url"` } } Username string `json:"username"` } }
type GoogleMapWidget ¶
type HtmlWidget ¶
type HtmlWidget struct {
HTML string
}
type Image ¶
type Image struct { Author string `json:"author"` Average string `json:"average"` BlobKey string `json:"blob_key"` BlobPath string `json:"blob_path"` Blur string `json:"blur"` ContentType string `json:"content_type"` Description string `json:"description"` Filename string `json:"filename"` Filepath string `json:"filepath"` FocalX int32 `json:"focal_x"` FocalY int32 `json:"focal_y"` Width int32 `json:"width"` Height int32 `json:"height"` Keywords []string `json:"keywords"` Palette []string `json:"palette"` Title string `json:"title"` Link string `json:"link"` Mode string `json:"mode"` }
type ImageWidget ¶
type InfoblockWidget ¶
type InfogramWidget ¶
type InfogramWidget struct { HTML string Meta OEmbedData }
type InstagramWidget ¶
type InstagramWidget struct { URL string Meta OEmbedData }
type IonoWidget ¶
type IonoWidget struct {
OEmbedData
}
type IssuWidget ¶
type IssuWidget struct { URL string Meta OEmbedData }
type JwPlayerWidget ¶
type JwPlayerWidget struct { ID string `json:"id"` URL string `json:"url"` Listing struct { Aggregate bool `json:"aggregate"` Author string `json:"author"` Description string `json:"description"` Image Image `json:"image"` Title string `json:"title"` } Meta struct { Description string `json:"description"` HTML string `json:"html"` Thumbnail string `json:"thumbnail"` ThumbnailHeight int `json:"thumbnail_height"` ThumbnailWidth int `json:"thumbnail_width"` Title string `json:"title"` Type string `json:"type"` URL string `json:"url"` Version string `json:"version"` } }
type OEmbedData ¶
type OEmbedData struct { AuthorName string `json:"author_name"` AuthorURL string `json:"author_url"` HTML string `json:"html"` ProviderName string `json:"provider_name"` ProviderURL string `json:"provider_url"` ThumbnailURL string `json:"thumbnail_url"` Width int `json:"width"` Height int `json:"height"` URL string `json:"url"` Version string `json:"version"` Title string `json:"title"` CacheAge int `json:"cache_age"` ThumbnailHeight int `json:"thumbnail_height"` ThumbnailWidth int `json:"thumbnail_width"` Type string `json:"type"` }
type PollDaddyWidget ¶
type PollDaddyWidget struct { ID string URL string Meta OEmbedData }
type Publication ¶
type Publication struct { ID string `json:"id"` Meta struct { Description string `json:"description"` Keywords string `json:"keywords"` } `json:"meta"` Name string `json:"name"` Primary bool `json:"primary"` Routed bool `json:"routed"` Sections []struct { ID string `json:"id"` Name string `json:"name"` Sections []struct { ID string `json:"id"` Name string `json:"name"` URLKey string `json:"urlKey"` } `json:"sections,omitempty"` URLKey string `json:"urlKey"` } `json:"sections"` Show bool `json:"show"` Strings struct { } `json:"strings"` URLKey string `json:"urlKey"` }
type QuoteWidget ¶
type ScribdWidget ¶
type ScribdWidget struct { ID string URL string Meta OEmbedData }
type SoundCloudWidget ¶
type SoundCloudWidget struct { Autoplay bool Height int Style string URL string Meta OEmbedData }
type TextWidget ¶
type TwitterWidget ¶
type TwitterWidget struct { URL string Meta OEmbedData }
type YoutubeWidget ¶
type YoutubeWidget struct { ID string `json:"id"` Pid string `json:"pid"` URL string `json:"url"` Listing struct { Aggregate bool `json:"aggregate"` Author string `json:"author"` Description string `json:"description"` Title string `json:"title"` Image Image `json:"image"` } Meta struct { Channel string `json:"channel"` Description string `json:"description"` Published string `json:"published"` Thumbnail string `json:"thumbnail"` ThumbnailSmall string `json:"thumbnail_small"` ThumbnailSmallRetina string `json:"thumbnail_small_retina"` Title string `json:"title"` } }
Click to show internal directories.
Click to hide internal directories.