Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct { // PublicationUUID that owns this feed (since publication uuid is one to one mapping, no need for other ID as DB serial key) PublicationUUID uuid.UUID `json:"publication_uuid"` // URL of the feed // TODO: separate type, validation (value object) URL string `json:"url"` }
Feed defines minimal feed type swagger:model
type FeedHTTPMetadata ¶
type FeedHTTPMetadata struct { PublicationUUID uuid.UUID `json:"publication_uuid"` LastModified time.Time `json:"last_modified"` ETag string `json:"etag"` }
FeeFeedHTTPMetadata is used during feed retrieval and parsing
func (*FeedHTTPMetadata) String ¶
func (f *FeedHTTPMetadata) String() string
type ProcessedItem ¶
type ProcessedItem struct { // PublicationUUID that owns this feed (since publication uuid is one to one mapping, no need for int ID as DB serial key) PublicationUUID uuid.UUID `json:"publication_uuid"` GUID string `json:"guid"` PublicationDate time.Time `json:"publication_date"` }
ProcessedItem defines already processed items from the feed
func (*ProcessedItem) String ¶
func (i *ProcessedItem) String() string
Click to show internal directories.
Click to hide internal directories.