Versions in this module Expand all Collapse all v1 v1.0.2 Jun 13, 2025 Changes in this version + type EchoAdapter struct + func NewEchoAdapter(commentService *service.CommentService) *EchoAdapter + func (a *EchoAdapter) CreateComment(c echo.Context) error + func (a *EchoAdapter) DeleteComment(c echo.Context) error + func (a *EchoAdapter) GetComment(c echo.Context) error + func (a *EchoAdapter) GetCommentChildren(c echo.Context) error + func (a *EchoAdapter) GetCommentPath(c echo.Context) error + func (a *EchoAdapter) GetCommentStats(c echo.Context) error + func (a *EchoAdapter) GetCommentTree(c echo.Context) error + func (a *EchoAdapter) GetCommentsByRoot(c echo.Context) error + func (a *EchoAdapter) GetCommentsByUser(c echo.Context) error + func (a *EchoAdapter) GetCommentsWithVotes(c echo.Context) error + func (a *EchoAdapter) GetTopComments(c echo.Context) error + func (a *EchoAdapter) GetUserCommentCount(c echo.Context) error + func (a *EchoAdapter) HealthCheck(c echo.Context) error + func (a *EchoAdapter) RegisterRoutes(e *echo.Echo) + func (a *EchoAdapter) RegisterRoutesWithPrefix(e *echo.Echo, prefix string) + func (a *EchoAdapter) RemoveVote(c echo.Context) error + func (a *EchoAdapter) SearchComments(c echo.Context) error + func (a *EchoAdapter) UpdateComment(c echo.Context) error + func (a *EchoAdapter) VoteComment(c echo.Context) error v1.0.1 Jun 13, 2025 Changes in this version + func NewRouter(commentService *service.CommentService) *mux.Router + type APIResponse struct + Data interface{} + Error string + Message string + Success bool + type CommentHandler struct + func NewCommentHandler(commentService *service.CommentService) *CommentHandler + func (h *CommentHandler) CreateComment(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) DeleteComment(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetComment(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentChildren(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentPath(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentStats(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentTree(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentsByRoot(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentsByUser(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetCommentsWithVotes(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetTopComments(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) GetUserCommentCount(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) RemoveVote(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) SearchComments(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) UpdateComment(w http.ResponseWriter, r *http.Request) + func (h *CommentHandler) VoteComment(w http.ResponseWriter, r *http.Request) + type PaginatedResponse struct + Data interface{} + Error string + Pagination *Pagination + Success bool + type Pagination struct + Limit int + Offset int + Total int