Documentation
¶
Index ¶
- type Cache
- type CacheStats
- type Loader
- func (l *Loader) GetAll() []*models.Post
- func (l *Loader) GetAllTags() []string
- func (l *Loader) GetBySlug(slug string) (*models.Post, error)
- func (l *Loader) GetByTag(tag string) []*models.Post
- func (l *Loader) GetPaginated(page, perPage int) ([]*models.Post, int, error)
- func (l *Loader) LoadAll() error
- func (l *Loader) Reload() error
- func (l *Loader) Search(query string) []*models.Post
- func (l *Loader) Watch() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache wraps Ristretto cache for blog posts
type CacheStats ¶
CacheStats represents cache statistics
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader handles loading and managing blog posts
func (*Loader) GetAllTags ¶
GetAllTags returns all unique tags from all posts
func (*Loader) GetPaginated ¶
GetPaginated returns a paginated slice of posts
Click to show internal directories.
Click to hide internal directories.