Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRepository ¶
type PostRepository interface { Posts() ([]entities.Post, []error) Post(id int) (*entities.Post, []error) UpdatePost(post *entities.Post) (*entities.Post, []error) DeletePost(id int) (*entities.Post, []error) StorePost(post *entities.Post) (*entities.Post, []error) }
PostRepository specifies post related database operations
type PostService ¶
type PostService interface { Posts() ([]entities.Post, []error) Post(id int) (*entities.Post, []error) UpdatePost(pst *entities.Post) (*entities.Post, []error) DeletePost(id int) (*entities.Post, []error) StorePost(pst *entities.Post) (*entities.Post, []error) }
PostService specifies post services
Click to show internal directories.
Click to hide internal directories.