Documentation
¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
Constants ¶
View Source
const MailSent = "Email with reset link is sent"
MailSent message response when link is sent
Variables ¶
View Source
var ( // ErrUnsupportedContentType indicates unacceptable or lack of Content-Type ErrUnsupportedContentType = errors.New("unsupported content type") // ErrFailedDecode indicates failed to decode request body ErrFailedDecode = errors.New("failed to decode request body") )
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the core service.
func MakeHandler ¶
MakeHandler returns a HTTP handler for API endpoints.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.