Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicate = fmt.Errorf("Post already exist")
ErrDuplicate defines the error message
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository provides access to Post repository.
type Service ¶
Service provides Post adding operations.
func NewService ¶
func NewService(r Repository) Service
NewService creates an adding service with the necessary dependencies
Click to show internal directories.
Click to hide internal directories.