Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP exposes http api.
func NewHTTP ¶
func NewHTTP( ctx context.Context, cfg *HTTPConfig, logger logger, sqldb *sql.DB, fetcher fetcher, emailClient emailSender, jwtService *jwt.Service, ) (*HTTP, error)
NewHTTP returns new http api.
func (*HTTP) ListenAndServe ¶
ListenAndServe stars http server.
type HTTPConfig ¶
HTTPConfig is the http api configuration.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.