arc

package
v0.0.0-...-6574a54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusWorking    = 1
	StatusAssigning  = 2
	StatusSecondEdit = 3
	StatusRim        = 4
	StatusSlot       = 5
	StatusDone       = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Contents             []FeedItem     `json:"content_elements"`
	Type                 string         `json:"type"`
	Version              string         `json:"version"`
	AdditionalProperties map[string]any `json:"additional_properties"`
	Count                int            `json:"count"`
	Next                 int            `json:"next"`
}

type By

type By struct {
	AdditionalProperties BylineProperties `json:"additional_properties"`
	ID                   string           `json:"_id"`
	Type                 string           `json:"type"`
	Version              string           `json:"version"`
	Name                 string           `json:"name"`
	Image                Image            `json:"image"`
	Description          string           `json:"description"`
	URL                  string           `json:"url"`
	Slug                 string           `json:"slug"`
	SocialLinks          []SocialLinks    `json:"social_links"`
	Org                  string           `json:"org,omitempty"`
}

type BylineProperties

type BylineProperties struct {
	Original Original `json:"original"`
}

type Comments

type Comments struct {
	AllowComments   bool `json:"allow_comments"`
	DisplayComments bool `json:"display_comments"`
}

type ContentElementHeading

type ContentElementHeading struct {
	Content string `json:"content"`
	Level   int    `json:"level"`
}

type ContentElementImage

type ContentElementImage struct {
	AdditionalProperties ImageAdditionalProperties `json:"additional_properties"`
	Credits              Credits                   `json:"credits"`
	Caption              string                    `json:"caption"`
	URL                  string                    `json:"url"`
	Width                int                       `json:"width"`
}

type ContentElementList

type ContentElementList struct {
	Items    []struct{ Type, Content string } `json:"items"`
	ListType string                           `json:"list_type"`
}

type ContentElementOembed

type ContentElementOembed struct {
	RawOembed RawOembed `json:"raw_oembed"`
}

type ContentElementText

type ContentElementText struct {
	Content *string `json:"content"`
}

type ContentElementType

type ContentElementType struct {
	Type *string `json:"type"`
}

type ContentProperties

type ContentProperties struct {
	HasPublishedCopy bool            `json:"has_published_copy"`
	IsPublished      bool            `json:"is_published"`
	PublishDate      json.RawMessage `json:"publish_date"`
}

type Credits

type Credits struct {
	By []By `json:"by"`
}

type Description

type Description struct {
	Basic string `json:"basic"`
}

type Distributor

type Distributor struct {
	Name        string `json:"name"`
	Category    string `json:"category"`
	Subcategory string `json:"subcategory"`
}

type Eyebrows

type Eyebrows struct {
	Text    string `json:"text"`
	URL     string `json:"url"`
	Display bool   `json:"display"`
}

type FeedItem

type FeedItem struct {
	AdditionalProperties ContentProperties  `json:"additional_properties"`
	CanonicalURL         string             `json:"canonical_url"`
	CanonicalWebsite     string             `json:"canonical_website"`
	Comments             Comments           `json:"comments"`
	ContentElements      []*json.RawMessage `json:"content_elements"`
	CreatedDate          time.Time          `json:"created_date"`
	Credits              Credits            `json:"credits"`
	Description          Description        `json:"description"`
	DisplayDate          time.Time          `json:"display_date,omitempty"`
	Distributor          Distributor        `json:"distributor"`
	FirstPublishDate     time.Time          `json:"first_publish_date,omitempty"`
	Headlines            Headlines          `json:"headlines"`
	ID                   string             `json:"_id"`
	Label                Label              `json:"label"`
	Language             string             `json:"language"`
	LastUpdatedDate      time.Time          `json:"last_updated_date"`
	Owner                Owner              `json:"owner"`
	Planning             Planning           `json:"planning"`
	PromoItems           PromoItems         `json:"promo_items"`
	PublishDate          time.Time          `json:"publish_date,omitempty"`
	Publishing           Publishing         `json:"publishing"`
	Slug                 string             `json:"slug"`
	Source               Source             `json:"source"`
	Subheadlines         Subheadlines       `json:"subheadlines"`
	Subtype              string             `json:"subtype"`
	Syndication          Syndication        `json:"syndication"`
	Type                 string             `json:"type"`
	Version              string             `json:"version"`
	Website              string             `json:"website"`
	WebsiteURL           string             `json:"website_url,omitempty"`
	Workflow             Workflow           `json:"workflow,omitempty"`
}

func (*FeedItem) Scan

func (item *FeedItem) Scan(value any) error

Scan implements the sql.Scanner interface.

func (FeedItem) Value

func (item FeedItem) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Headlines

type Headlines struct {
	Basic     string `json:"basic"`
	Mobile    string `json:"mobile"`
	Native    string `json:"native"`
	Print     string `json:"print"`
	Tablet    string `json:"tablet"`
	Web       string `json:"web"`
	MetaTitle string `json:"meta_title"`
}

type Image

type Image struct {
	URL     string `json:"url"`
	Version string `json:"version"`
}

type ImageAdditionalProperties

type ImageAdditionalProperties struct {
	ID                 string    `json:"_id"`
	Expiry             string    `json:"expiry"`
	TakenOn            time.Time `json:"takenOn"`
	Version            int       `json:"version"`
	ProxyURL           string    `json:"proxyUrl"`
	MimeType           string    `json:"mime_type"`
	Published          bool      `json:"published"`
	ResizeURL          string    `json:"resizeUrl"`
	Restricted         bool      `json:"restricted"`
	OriginalURL        string    `json:"originalUrl"`
	OriginalName       string    `json:"originalName"`
	AdapterVersion     string    `json:"adapter_version"`
	FullSizeResizeURL  string    `json:"fullSizeResizeUrl"`
	VisibleToSearch    bool      `json:"visible_to_search"`
	ThumbnailResizeURL string    `json:"thumbnailResizeUrl"`
}

type Label

type Label struct {
	Eyebrows Eyebrows `json:"eyebrows"`
}

type Original

type Original struct {
	ID              string    `json:"_id"`
	Byline          string    `json:"byline"`
	Contributor     bool      `json:"contributor"`
	Email           string    `json:"email"`
	FirstName       string    `json:"firstName"`
	Image           string    `json:"image"`
	LastName        string    `json:"lastName"`
	LastUpdatedDate time.Time `json:"last_updated_date"`
	LongBio         string    `json:"longBio"`
	Role            string    `json:"role"`
	SecondLastName  string    `json:"secondLastName"`
	Slug            string    `json:"slug"`
	Status          bool      `json:"status"`
	Type            string    `json:"type"`
}

type Owner

type Owner struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Sponsored bool   `json:"sponsored"`
}

type Planning

type Planning struct {
	Scheduling   Scheduling  `json:"scheduling"`
	InternalNote string      `json:"internal_note"`
	StoryLength  StoryLength `json:"story_length"`
	BudgetLine   string      `json:"budget_line"`
}

type PromoCredit

type PromoCredit struct {
	Affiliation []struct {
		Name string `json:"name"`
		Type string `json:"type"`
	} `json:"affiliation"`
	By []struct {
		Byline string `json:"byline"`
		Name   string `json:"name"`
		Type   string `json:"type"`
	} `json:"by"`
}

type PromoItems

type PromoItems struct {
	Basic struct {
		ID                   string `json:"_id"`
		AdditionalProperties struct {
			FullSizeResizeURL string    `json:"fullSizeResizeUrl"`
			Galleries         []any     `json:"galleries"`
			MimeType          string    `json:"mime_type"`
			OriginalName      string    `json:"originalName"`
			OriginalURL       string    `json:"originalUrl"`
			ProxyURL          string    `json:"proxyUrl"`
			Published         bool      `json:"published"`
			ResizeURL         string    `json:"resizeUrl"`
			Restricted        bool      `json:"restricted"`
			TakenOn           time.Time `json:"takenOn"`
			Version           int       `json:"version"`
		} `json:"additional_properties"`
		Caption     string      `json:"caption"`
		CreatedDate time.Time   `json:"created_date"`
		Credits     PromoCredit `json:"credits"`
		Distributor struct {
			AdditionalProperties struct {
			} `json:"additional_properties"`
			Category string `json:"category"`
			Name     string `json:"name"`
		} `json:"distributor"`
		Height          int       `json:"height"`
		LastUpdatedDate time.Time `json:"last_updated_date"`
		Licensable      bool      `json:"licensable"`
		Owner           struct {
			ID   string `json:"id"`
			Name string `json:"name"`
		} `json:"owner"`
		Source struct {
			AdditionalProperties struct {
				ClickabilityID string `json:"clickability_id"`
			} `json:"additional_properties"`
			Name       string `json:"name"`
			SourceID   string `json:"source_id"`
			SourceType string `json:"source_type"`
			System     string `json:"system"`
		} `json:"source"`
		Type    string `json:"type"`
		URL     string `json:"url"`
		Version string `json:"version"`
		Width   int    `json:"width"`
	} `json:"basic"`
}

type Publishing

type Publishing struct {
	ScheduledOperations ScheduledOperations `json:"scheduled_operations"`
}

type RawOembed

type RawOembed struct {
	ID           string `json:"_id"`
	AuthorName   string `json:"author_name"`
	AuthorURL    string `json:"author_url"`
	CacheAge     string `json:"cache_age"`
	HTML         string `json:"html"`
	ProviderName string `json:"provider_name"`
	ProviderURL  string `json:"provider_url"`
	Type         string `json:"type"`
	URL          string `json:"url"`
	Version      string `json:"version"`
	Width        int    `json:"width"`
}

type Revision

type Revision struct {
	RevisionID string `json:"revision_id"`
	ParentID   string `json:"parent_id"`
	Editions   []any  `json:"editions"`
	Branch     string `json:"branch"`
	UserID     string `json:"user_id"`
}

type ScheduledOperations

type ScheduledOperations struct {
	PublishEdition   []any `json:"publish_edition"`
	UnpublishEdition []any `json:"unpublish_edition"`
}

type Scheduling

type Scheduling struct {
	PlannedPublishDate time.Time `json:"planned_publish_date"`
}
type SocialLinks struct {
	Site string `json:"site"`
	URL  string `json:"url"`
}

type Source

type Source struct {
	System     string `json:"system"`
	Name       string `json:"name"`
	SourceType string `json:"source_type"`
}

type StoryLength

type StoryLength struct {
	WordCountActual  int `json:"word_count_actual"`
	LineCountActual  int `json:"line_count_actual"`
	InchCountActual  int `json:"inch_count_actual"`
	WordCountPlanned int `json:"word_count_planned"`
}

type Subheadlines

type Subheadlines struct {
	Basic string `json:"basic"`
}

type Syndication

type Syndication struct {
	ExternalDistribution bool `json:"external_distribution"`
	Search               bool `json:"search"`
}

type Taxonomy

type Taxonomy struct {
	SeoKeywords []string `json:"seo_keywords"`
}

type Workflow

type Workflow struct {
	StatusCode int    `json:"status_code"`
	Note       string `json:"note"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL