Documentation ¶
Index ¶
- Variables
- type Commend
- type CommentStore
- type Service
- func (s *Service) CreateComments(ctx context.Context, cmt Commend) error
- func (s *Service) DeleteComments(ctx context.Context, CommendId string) (Commend, error)
- func (s *Service) GetComment(ctx context.Context, CommendId string) (Commend, error)
- func (s *Service) UpdateComments(ctx context.Context, cmt Commend) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorsLoadingComments = errors.New("Error loading comment by CommentId") ErrorNotImplemented = errors.New("The method is not implemented as of now") )
Functions ¶
This section is empty.
Types ¶
type CommentStore ¶
type Service ¶
type Service struct {
CommentStore CommentStore
}
func NewService ¶
func NewService(commentStore CommentStore) *Service
func (*Service) CreateComments ¶
func (*Service) DeleteComments ¶
func (*Service) GetComment ¶
Click to show internal directories.
Click to hide internal directories.