model

package
v0.0.0-...-5e12377 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2015 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 Feed

type Feed struct {
	Id           int         `orm:"auto"`
	Url          string      `orm:"size(255)"`
	Type         string      `orm:"column(feed_type);size(255)"`
	Label        string      `orm:"column(feed_label);size(255)"`
	LastLoadedAt time.Time   `orm:"column(last_loaded_at);type(datetime)"`
	Enabled      bool        `orm:""`
	CreatedAt    time.Time   `orm:"column(created_at);auto_now_add;type(datetime)"`
	UpdatedAt    time.Time   `orm:"column(updated_at);auto_now;type(datetime)"`
	FeedItems    []*FeedItem `orm:"reverse(many)"`
}

func RdfFeeds

func RdfFeeds() ([]*Feed, error)

func (*Feed) TableName

func (feed *Feed) TableName() string

type FeedItem

type FeedItem struct {
	Id          int       `orm:"auto"`
	Title       string    `orm:"size(255)"`
	Link        string    `orm:"size(255)"`
	Desc        string    `orm:"size(65535)"`
	DcDate      time.Time `orm:"column(dc_date);type(datetime)"`
	DcSubject   string    `orm:"column(dc_subject);size(255)"`
	HatebuCount int32     `orm:"column(hatebu_count)"`
	Feed        *Feed     `orm:"rel(fk)"`
	CreatedAt   time.Time `orm:"column(created_at);auto_now_add;type(datetime)"`
	UpdatedAt   time.Time `orm:"column(updated_at);auto_now;type(datetime)"`
}

func (*FeedItem) TableName

func (feedItem *FeedItem) TableName() string

Jump to

Keyboard shortcuts

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