article

package
v0.0.0-...-8d1786a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

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

type Contributor struct {
	Role string
	Name string
}

Contributor is someone who was part of creating an article

type Image

type Image struct {
	URL  string
	Hash string
	H    int
	W    int
}

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

Jump to

Keyboard shortcuts

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