Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SchemaVersion is the current schema version for the article data
SchemaVersion = "1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID uint BlockData ethTypes.Receipt ArticleMetadata Metadata NewsroomAddress string IndexedTimestamp time.Time RawJSON json.RawMessage }
Article is the top level representation of an article
type Contributor ¶
Contributor is someone who was part of creating an article
type Image ¶
Image saves information about images in the article including a potential content hash that can be used for verifications
type Metadata ¶
type Metadata struct { Title string RevisionContentHash string RevisionContentURL string CanonicalURL string Slug string Description string Contributors []Contributor Images []Image Tags []string PrimaryTag string RevisionDate time.Time OriginalPublishDate time.Time Opinion bool CivilSchemaVersion string }
Metadata is the information about an article that is indexeds
Click to show internal directories.
Click to hide internal directories.