Documentation ¶ Index ¶ type API func NewAPI(s storage.Storage) *API func (s *API) CreateComment(ctx echo.Context) error func (s *API) DeleteComment(ctx echo.Context) error func (s *API) GetComment(ctx echo.Context) error func (s *API) GetComments(ctx echo.Context) error func (s *API) UpdateComment(ctx echo.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type API ¶ type API struct { // contains filtered or unexported fields } func NewAPI ¶ func NewAPI(s storage.Storage) *API func (*API) CreateComment ¶ func (s *API) CreateComment(ctx echo.Context) error func (*API) DeleteComment ¶ func (s *API) DeleteComment(ctx echo.Context) error func (*API) GetComment ¶ func (s *API) GetComment(ctx echo.Context) error func (*API) GetComments ¶ func (s *API) GetComments(ctx echo.Context) error func (*API) UpdateComment ¶ func (s *API) UpdateComment(ctx echo.Context) error Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.