Documentation
¶
Index ¶
- func OpenDB() *gorm.DB
- type BlogService
- func (s *BlogService) CreateBlog(b *BlogggerBot.Blog) error
- func (s *BlogService) CreatePost(p *BlogggerBot.Post) error
- func (s *BlogService) GetBlog(id uint) (BlogggerBot.Blog, error)
- func (s *BlogService) GetBlogs() ([]BlogggerBot.Blog, error)
- func (s *BlogService) GetNewPosts() ([]BlogggerBot.Post, error)
- func (s *BlogService) Notify(p *BlogggerBot.Post) error
- func (s *BlogService) UpdatedBlog(b *BlogggerBot.Blog) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlogService ¶
func (*BlogService) CreateBlog ¶
func (s *BlogService) CreateBlog(b *BlogggerBot.Blog) error
func (*BlogService) CreatePost ¶
func (s *BlogService) CreatePost(p *BlogggerBot.Post) error
func (*BlogService) GetBlog ¶
func (s *BlogService) GetBlog(id uint) (BlogggerBot.Blog, error)
func (*BlogService) GetBlogs ¶
func (s *BlogService) GetBlogs() ([]BlogggerBot.Blog, error)
func (*BlogService) GetNewPosts ¶
func (s *BlogService) GetNewPosts() ([]BlogggerBot.Post, error)
func (*BlogService) Notify ¶
func (s *BlogService) Notify(p *BlogggerBot.Post) error
func (*BlogService) UpdatedBlog ¶
func (s *BlogService) UpdatedBlog(b *BlogggerBot.Blog) error
Click to show internal directories.
Click to hide internal directories.