Versions in this module Expand all Collapse all v0 v0.0.1 Sep 15, 2020 Changes in this version + var ErrNotFound = &ErrResponse + func FileServer(r chi.Router, path string, root http.FileSystem) + type Config struct + Address string + RequestTimeout int + type ErrResponse struct + Body ErrResponseBody + HTTPStatusCode int + func ErrInternal(err error) *ErrResponse + func ErrInvalidRequest(err error) *ErrResponse + func ErrRender(err error) *ErrResponse + func (e *ErrResponse) Render(w http.ResponseWriter, r *http.Request) + type ErrResponseBody struct + ErrorText string + StatusText string + type FeedRequest struct + Body FeedRequestBody + type FeedRequestBody struct + func (b *FeedRequestBody) Bind(r *http.Request) error + func (b FeedRequestBody) Validate() error + type FeedResponse struct + Body FeedResponseBody + func NewFeedResponse(f *entity.Feed) *FeedResponse + func (fp *FeedResponse) Render(w http.ResponseWriter, r *http.Request) + type FeedResponseBody struct + type FeedsRepository interface + Create func(*entity.Feed) error + Delete func(uuid.UUID) error + GetAll func() ([]entity.Feed, error) + GetByPublicationUUID func(uuid.UUID) (*entity.Feed, error) + Update func(*entity.Feed) error + type RSSFeedsUpdateProducer interface + SendUpdateAll func() error + SendUpdateOne func(uuid.UUID) error + type Server struct + func New(serverConfig Config, logger logger.Logger, feedRepository FeedsRepository, ...) *Server + func (s *Server) StartAndServe()