Documentation ¶
Overview ¶
Package server has the implementation for the article request handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleService ¶
type ArticleService struct {
// contains filtered or unexported fields
}
func New ¶
func New(s repository.ArticleRepository) *ArticleService
New returns a new HTTP Server for article service
func (*ArticleService) Router ¶
func (as *ArticleService) Router() *mux.Router
Router will handle the routing for the article service
func (*ArticleService) ServeHTTP ¶
func (as *ArticleService) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP helps to implement the ListenAndServe interface
Click to show internal directories.
Click to hide internal directories.