entity

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 3 Imported by: 0

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

func (*Feed) String

func (f *Feed) String() string

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

Jump to

Keyboard shortcuts

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