rivelin: hawx.me/code/rivelin/models Index | Files

package models

import "hawx.me/code/rivelin/models"

Index

Package Files

log_line.go river.go rsstime.go

func MakeLogBlocks Uses

func MakeLogBlocks(lines []LogLine) []LogBlock

type Item Uses

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

func (Item) FilteredBody Uses

func (r Item) FilteredBody() string

func (Item) SetLocation Uses

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

type LogBlock Uses

type LogBlock struct {
    Header string
    Items  []LogLine
}

type LogLine Uses

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

func (LogLine) Status Uses

func (l LogLine) Status() string

type River Uses

type River struct {
    UpdatedFeeds UpdatedFeeds
}

func (River) SetLocation Uses

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

type RssTime Uses

type RssTime struct {
    time.Time
}

func (*RssTime) HtmlFormat Uses

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

func (RssTime) MarshalJSON Uses

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

func (RssTime) MarshalText Uses

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

func (*RssTime) UnmarshalJSON Uses

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

func (*RssTime) UnmarshalText Uses

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

type UpdatedFeed Uses

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

func (UpdatedFeed) SetLocation Uses

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

type UpdatedFeeds Uses

type UpdatedFeeds struct {
    UpdatedFeed []UpdatedFeed
}

func (UpdatedFeeds) SetLocation Uses

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

Package models imports 3 packages (graph) and is imported by 1 packages. Updated 2018-01-02. Refresh now. Tools for package owners.