Documentation ¶
Index ¶
- Variables
- func BypassRequest(_ context.Context, _ *http.Request) (request interface{}, err error)
- func EncodeError(_ context.Context, err error, w http.ResponseWriter)
- func EncodeResponse(_ context.Context, w http.ResponseWriter, resp interface{}) error
- func InitArticleHandler(router *mux.Router, service article.UseCase, ...)
- func InitTagHandler(router *mux.Router, service article.TagUseCase, ...)
- type ArticleEndpoints
- type TagEndpoints
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSlugNotFound = errors.New("slug not found")
)
Functions ¶
func BypassRequest ¶
func EncodeError ¶
func EncodeError(_ context.Context, err error, w http.ResponseWriter)
func EncodeResponse ¶
func EncodeResponse(_ context.Context, w http.ResponseWriter, resp interface{}) error
func InitArticleHandler ¶
func InitArticleHandler(router *mux.Router, service article.UseCase, options []httptransport.ServerOption)
func InitTagHandler ¶
func InitTagHandler(router *mux.Router, service article.TagUseCase, options []httptransport.ServerOption)
Types ¶
type ArticleEndpoints ¶
type TagEndpoints ¶
Click to show internal directories.
Click to hide internal directories.