Documentation
¶
Overview ¶
This package contains read-only queries that require more data than just the normalized domain models (like articles or blogs+isFollowing). They are not grouped by types and instead exist as top-level methods of the Finder struct.
Index ¶
- type Article
- type BlogForAccount
- type Finder
- func (f *Finder) CountArticles() (int, error)
- func (f *Finder) CountArticlesByAccount(account *model.Account) (int, error)
- func (f *Finder) CountSearchArticles(search string) (int, error)
- func (f *Finder) CountSearchArticlesByAccount(account *model.Account, search string) (int, error)
- func (f *Finder) ListArticles(limit, offset int) ([]Article, error)
- func (f *Finder) ListArticlesByAccount(account *model.Account, limit, offset int) ([]Article, error)
- func (f *Finder) ListBlogsForAccount(account *model.Account) ([]BlogForAccount, error)
- func (f *Finder) SearchArticles(search string, limit, offset int) ([]Article, error)
- func (f *Finder) SearchArticlesByAccount(account *model.Account, search string, limit, offset int) ([]Article, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogForAccount ¶
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
func (*Finder) CountArticles ¶
func (*Finder) CountArticlesByAccount ¶
func (*Finder) CountSearchArticles ¶
func (*Finder) CountSearchArticlesByAccount ¶
func (*Finder) ListArticlesByAccount ¶
func (*Finder) ListBlogsForAccount ¶
func (f *Finder) ListBlogsForAccount(account *model.Account) ([]BlogForAccount, error)
TODO: Paginate this (will need to add a CountBlogsForAccount method).
func (*Finder) SearchArticles ¶
Click to show internal directories.
Click to hide internal directories.