Documentation ¶
Index ¶
- Variables
- func DumpDatabase(filePath string) error
- func FeedCount() (int64, error)
- func HasSite(host string) (has bool, e error)
- func LoadConfigs()
- func NewEngine() (err error)
- func NewTestEngine(x *xorm.Engine) (err error)
- func Ping() error
- func SaveSite(s *Site) error
- func SaveSiteFeed(sf *SiteFeed) error
- func SetEngine() (err error)
- func SiteCount() (int64, error)
- func SiteFeedCount(siteId int64) (int64, error)
- func SiteFetchNewFeed(siteId int64) error
- func SiteLinkFetched(link string) (bool, error)
- func SiteSetHasFeed(id int64, hf bool) error
- type Engine
- type Site
- type SiteFeed
- type Statistic
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HasEngine bool DbCfg struct { Type, Host, Name, User, Passwd, Path, SSLMode string } EnableSQLite3 bool EnableTidb bool )
Functions ¶
func DumpDatabase ¶
DumpDatabase dumps all data from database to file system.
func LoadConfigs ¶
func LoadConfigs()
func NewTestEngine ¶
func SaveSiteFeed ¶
func SiteFeedCount ¶
func SiteFetchNewFeed ¶
func SiteLinkFetched ¶
func SiteSetHasFeed ¶
Types ¶
type Engine ¶
type Engine interface { Delete(interface{}) (int64, error) Exec(string, ...interface{}) (sql.Result, error) Find(interface{}, ...interface{}) error Get(interface{}) (bool, error) Insert(...interface{}) (int64, error) InsertOne(interface{}) (int64, error) Id(interface{}) *xorm.Session Sql(string, ...interface{}) *xorm.Session Where(string, ...interface{}) *xorm.Session }
Engine represents a xorm engine or session.
type Site ¶
type SiteFeed ¶
type SiteFeed struct { Id int64 Title string Body string `xorm:"LONGTEXT"` ImagePreview string Image string Published time.Time Source string `xorm:"unique"` SiteId int64 `xorm:"index"` Created time.Time `xorm:"created"` Updated time.Time `xorm:"updated"` }
func GetSiteFeedItem ¶
func NewSiteFeedFromArticle ¶
Click to show internal directories.
Click to hide internal directories.