Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPostNotFound = errors.New("post not found")
Functions ¶
This section is empty.
Types ¶
type ListPostsUseCase ¶
type ListPostsUseCase struct {
// contains filtered or unexported fields
}
func NewListPostsUseCase ¶
func NewListPostsUseCase( postRepo PostRepo, renderer Renderer, cache shared.Cache, ) *ListPostsUseCase
func (*ListPostsUseCase) Run ¶
func (u *ListPostsUseCase) Run() ([]RenderedPost, error)
type RenderedPost ¶
type ViewPostUseCase ¶
type ViewPostUseCase struct {
// contains filtered or unexported fields
}
func NewViewPostUseCase ¶
func NewViewPostUseCase( postRepo PostRepo, renderer Renderer, cache shared.Cache, ) *ViewPostUseCase
func (*ViewPostUseCase) Run ¶
func (u *ViewPostUseCase) Run(path string) (RenderedPost, error)
Click to show internal directories.
Click to hide internal directories.