Documentation
¶
Index ¶
- type BlogStorage
- func (s *BlogStorage) Create(blog *admin.Blog) error
- func (repo *BlogStorage) Delete(blog *admin.Blog) error
- func (s *BlogStorage) List(limit, offset int) ([]*admin.Blog, error)
- func (s *BlogStorage) ListAll() ([]*admin.Blog, error)
- func (s *BlogStorage) Read(id uuid.UUID) (*admin.Blog, error)
- func (s *BlogStorage) ReadByFeedURL(feedURL string) (*admin.Blog, error)
- func (s *BlogStorage) Update(blog *admin.Blog) error
- type PostStorage
- func (s *PostStorage) Create(post *admin.Post) error
- func (repo *PostStorage) Delete(post *admin.Post) error
- func (s *PostStorage) List(limit, offset int) ([]*admin.Post, error)
- func (s *PostStorage) ListByBlog(blog *admin.Blog, limit, offset int) ([]*admin.Post, error)
- func (s *PostStorage) Read(id uuid.UUID) (*admin.Post, error)
- func (s *PostStorage) ReadByURL(url string) (*admin.Post, error)
- func (s *PostStorage) Update(post *admin.Post) error
- type Storage
- type TagStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogStorage ¶
type BlogStorage struct {
// contains filtered or unexported fields
}
func NewBlogStorage ¶
func NewBlogStorage(conn postgres.Conn) *BlogStorage
func (*BlogStorage) ListAll ¶ added in v0.3.2
func (s *BlogStorage) ListAll() ([]*admin.Blog, error)
func (*BlogStorage) ReadByFeedURL ¶
func (s *BlogStorage) ReadByFeedURL(feedURL string) (*admin.Blog, error)
type PostStorage ¶
type PostStorage struct {
// contains filtered or unexported fields
}
func NewPostStorage ¶
func NewPostStorage(conn postgres.Conn) *PostStorage
func (*PostStorage) ListByBlog ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) Blog ¶
func (s *Storage) Blog() *BlogStorage
func (*Storage) Post ¶
func (s *Storage) Post() *PostStorage
func (*Storage) Tag ¶
func (s *Storage) Tag() *TagStorage
type TagStorage ¶
type TagStorage struct {
// contains filtered or unexported fields
}
func NewTagStorage ¶
func NewTagStorage(conn postgres.Conn) *TagStorage
Click to show internal directories.
Click to hide internal directories.