models

package
v0.0.0-...-a57c8d5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetReadableContent

func SetReadableContent(article *Article) error

prepare, call, and read Readability API

Types

type Article

type Article struct {
	Id      bson.ObjectId `bson:"_id,omitempty"`
	Url     string        `bson: "url"`
	Title   string
	Content template.HTML `bson: "content"`
	Score   int64         `bson: "score"`
	ViewSet mgo.DBRef     `bson: "viewCollection"`
}

type ReadabilityResponse

type ReadabilityResponse struct {
	Url     string
	Title   string
	Content string
	Error   string
}

Jump to

Keyboard shortcuts

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