Documentation ¶
Index ¶
- func NewLocalPostService() ports.PostService
- type LocalPostService
- func (lps LocalPostService) GetPost(postName string) (*domain.Post, error)
- func (lps LocalPostService) GetPostAsset(postName string, assetName string) (string, error)
- func (lps LocalPostService) Posts(opts *ports.PostsOptions) ([]*domain.Post, error)
- func (lps LocalPostService) SearchPosts(term string) ([]*domain.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalPostService ¶
func NewLocalPostService() ports.PostService
Types ¶
type LocalPostService ¶
type LocalPostService struct{}
func (LocalPostService) GetPost ¶
func (lps LocalPostService) GetPost(postName string) (*domain.Post, error)
func (LocalPostService) GetPostAsset ¶
func (lps LocalPostService) GetPostAsset(postName string, assetName string) (string, error)
func (LocalPostService) Posts ¶
func (lps LocalPostService) Posts(opts *ports.PostsOptions) ([]*domain.Post, error)
func (LocalPostService) SearchPosts ¶
func (lps LocalPostService) SearchPosts(term string) ([]*domain.Post, error)
Click to show internal directories.
Click to hide internal directories.