Documentation
¶
Index ¶
- func MakeEndpointCreateArticle(s Service) endpoint.Endpoint
- func MakeEndpointGetArticle(s Service) endpoint.Endpoint
- func NewService(repo ArticlesRepository) *service
- func RegisterRoutes(router *httprouter.Router, s Service)
- type ArticlesRepository
- type CreateArticleRequestModel
- type CreateArticleResponseModel
- type GetArticleRequestModel
- type GetArticleResponseModel
- type Router
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeEndpointGetArticle ¶
func NewService ¶
func NewService(repo ArticlesRepository) *service
func RegisterRoutes ¶
func RegisterRoutes(router *httprouter.Router, s Service)
Types ¶
type ArticlesRepository ¶
type CreateArticleRequestModel ¶
func (CreateArticleRequestModel) ToArticle ¶
func (r CreateArticleRequestModel) ToArticle() article.Article
type CreateArticleResponseModel ¶
type CreateArticleResponseModel struct {
ID string
}
type GetArticleRequestModel ¶
type GetArticleRequestModel struct {
ID string
}
type GetArticleResponseModel ¶
Click to show internal directories.
Click to hide internal directories.