model

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canonical

type Canonical struct {
	Href string `json:"href"`
}

type Item

type Item struct {
	CrawlTimeMsec string      `json:"crawlTimeMsec"`
	TimestampUsec string      `json:"timestampUsec"`
	Id            string      `json:"id"`
	Categories    []string    `json:"categories"`
	Title         string      `json:"title"`
	Published     int64       `json:"published"`
	Updated       int64       `json:"updated"`
	Starred       int64       `json:"starred"`
	Canonical     []Canonical `json:"canonical"`
	Summary       struct {
		Direction string `json:"direction"`
		Content   string `json:"content"`
	} `json:"summary"`
	Author string `json:"author"`
	Origin struct {
		StreamId string `json:"streamId"`
		Title    string `json:"title"`
		HtmlUrl  string `json:"htmlUrl"`
	} `json:"origin"`
}

func (*Item) ContentFooter

func (i *Item) ContentFooter() string

func (*Item) ContentHeader

func (i *Item) ContentHeader() string
func (i *Item) Link() string

func (*Item) PatchedContent

func (i *Item) PatchedContent() string

func (*Item) PublishedTime

func (i *Item) PublishedTime() time.Time

type Starred

type Starred struct {
	Items []*Item `json:"items"`
}

func (*Starred) FromJSON

func (s *Starred) FromJSON(reader io.Reader) (*Starred, error)

Jump to

Keyboard shortcuts

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