Documentation ¶
Index ¶
- Variables
- type Adjacent
- type Content
- func (c Content) Desc() template.HTML
- func (c Content) HasNext() bool
- func (c Content) HasPrev() bool
- func (c Content) HasTags() bool
- func (c Content) IsCat(id uint) bool
- func (c Content) Mod() string
- func (c Content) Next() Adjacent
- func (c Content) Prev() Adjacent
- func (c Content) Pub() string
- func (c Content) Short() template.HTML
- func (c Content) Slug() string
- func (c Content) Tags() (tags []Content)
- func (c Content) Title() template.HTML
- type DataService
- func (ds DataService) Get(c context.Context, catids []uint, slug string) (Content, error)
- func (ds DataService) ListByCat(c context.Context, catid uint) ([]Content, error)
- func (ds DataService) ListByTaxaSlug(c context.Context, catids []uint, taxans, slug string) (Content, []Content, error)
- func (ds DataService) Search(c context.Context, catids []uint, search string) (ret []Content, err error)
- type GetCache
- type Prefetch
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
func NewContent ¶
func NewContentFake ¶
type DataService ¶
type DataService struct {
// contains filtered or unexported fields
}
func NewDataService ¶
func NewDataService(origin string, cache *GetCache) DataService
func (DataService) ListByTaxaSlug ¶
type GetCache ¶
type GetCache struct {
// contains filtered or unexported fields
}
func NewGetCache ¶
func NewGetCache() *GetCache
Click to show internal directories.
Click to hide internal directories.