Documentation ¶
Index ¶
- type Account
- type CheckOnChainDataRequest
- type CheckOnChainDataResponse
- type ExtraLinks
- type ExtraSpec
- type FeedWithExtra
- type ItemWithExtra
- type Media
- type OnChainRequest
- type OnChainResponse
- type RawFeed
- type RelationDeps
- type ValidateRequest
- type ValidateResponse
- type WorkDispatched
- type WorkFailed
- type WorkSucceeded
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckOnChainDataRequest ¶
type CheckOnChainDataRequest struct {
CrossbellCharacterID string `json:"crossbell_character_id"`
}
type ExtraLinks ¶
type ExtraSpec ¶
type ExtraSpec struct {
Links []ExtraLinks `json:"links"`
}
type FeedWithExtra ¶
type FeedWithExtra struct { gofeed.Feed Items []*ItemWithExtra `json:"items"` }
FeedWithExtra is the universal Feed type that atom.Feed and rss.Feed gets translated to. It represents a web feed. Sorting with sort.Sort will order the Items by oldest to newest publish time.
type ItemWithExtra ¶
type ItemWithExtra struct { gofeed.Item ID string `json:"id"` URL string `json:"url"` DatePublished time.Time `json:"date_published"` ContentHTML string `json:"content_html"` Extra ExtraSpec `json:"_extra"` }
ItemWithExtra is the universal Item type that atom.Entry and rss.Item gets translated to. It represents a single entry in a given feed.
type Media ¶
type Media struct { FileName string `json:"file_name"` OriginalURI string `json:"original_uri"` IPFSUri string `json:"ipfs_uri" gorm:"index;column:ipfs_uri"` FileSize uint `json:"file_size"` ContentType string `json:"content_type"` AdditionalProps string `json:"additional_props"` // JSON-stringfied props }
type OnChainRequest ¶
type OnChainResponse ¶
type OnChainResponse struct { IsSucceeded bool `json:"is_succeeded"` Message string `json:"message"` Platform string `json:"platform"` FeedID uint `json:"feed_id"` // Feed ID in main database IPFSUri string `json:"ipfs_uri"` Transaction string `json:"tx"` CharacterID int64 `json:"character_id"` NoteID int64 `json:"note_id"` }
type RawFeed ¶
type RawFeed struct { Language string `json:"language"` Title string `json:"title"` Description string `json:"description"` Content string `json:"text"` Link string `json:"link"` UpdatedAt time.Time `json:"updated_at"` PublishedAt time.Time `json:"published_at"` Authors pq.StringArray `json:"authors" gorm:"type:text[]"` GUID string `json:"guid"` Image string `json:"image"` Categories pq.StringArray `json:"categories" gorm:"type:text[]"` Media []Media `json:"media" gorm:"-"` ContentWarning string `json:"content_warning"` // 'nsfw' | 'sensitive' | 'spoiler' RelationDeps }
RawFeed : Minimal content of feed (just for work response)
type RelationDeps ¶
type ValidateRequest ¶
type ValidateResponse ¶
type WorkDispatched ¶
type WorkDispatched struct { DispatchAt time.Time `json:"dispatch_at"` AccountID uint `json:"account_id"` Platform string `json:"platform"` Username string `json:"username"` // The unique identifier on platform DropBefore time.Time `json:"drop_before"` // Ignore feeds before last updated time DropAfter time.Time `json:"drop_after"` // Ignore feeds after next updated time }
type WorkFailed ¶
type WorkSucceeded ¶
Click to show internal directories.
Click to hide internal directories.