models

package
v0.0.0-...-6a0bd92 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 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 Item

type Item struct {
	Body      string
	Permalink string
	PubDate   RssTime
	Title     string
	Link      string
	Id        string
	Thumbnail *struct {
		URL string
	}
}

func (Item) FilteredBody

func (r Item) FilteredBody() string

func (Item) SetLocation

func (r Item) SetLocation(loc time.Location) Item

type LogBlock

type LogBlock struct {
	Header string
	Items  []LogLine
}

func MakeLogBlocks

func MakeLogBlocks(lines []LogLine) []LogBlock

type LogLine

type LogLine struct {
	At   time.Time `json:"at"`
	URI  string    `json:"uri"`
	Code int       `json:"code"`
}

func (LogLine) Status

func (l LogLine) Status() string

type River

type River struct {
	UpdatedFeeds UpdatedFeeds
}

func (River) SetLocation

func (r River) SetLocation(loc time.Location) River

type RssTime

type RssTime struct {
	time.Time
}

func (*RssTime) HtmlFormat

func (t *RssTime) HtmlFormat() template.HTML

func (RssTime) MarshalJSON

func (t RssTime) MarshalJSON() ([]byte, error)

func (RssTime) MarshalText

func (t RssTime) MarshalText() ([]byte, error)

func (*RssTime) UnmarshalJSON

func (t *RssTime) UnmarshalJSON(data []byte) error

func (*RssTime) UnmarshalText

func (t *RssTime) UnmarshalText(data []byte) error

type UpdatedFeed

type UpdatedFeed struct {
	FeedUrl         string
	WebsiteUrl      string
	FeedTitle       string
	FeedDescription string
	WhenLastUpdate  RssTime
	Item            []Item
}

func (UpdatedFeed) SetLocation

func (r UpdatedFeed) SetLocation(loc time.Location) UpdatedFeed

type UpdatedFeeds

type UpdatedFeeds struct {
	UpdatedFeed []UpdatedFeed
}

func (UpdatedFeeds) SetLocation

func (r UpdatedFeeds) SetLocation(loc time.Location) UpdatedFeeds

Jump to

Keyboard shortcuts

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