Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandler ¶
type HttpHandler struct {
// contains filtered or unexported fields
}
func NewHttpHandler ¶
func (*HttpHandler) Home ¶
func (h *HttpHandler) Home(w http.ResponseWriter, r *http.Request)
Home serves the root `GET /` route.
func (*HttpHandler) Render ¶
func (h *HttpHandler) Render(w http.ResponseWriter, r *http.Request)
Render serves the `POST /render` route that renders a markdown document.
func (*HttpHandler) Start ¶
func (h *HttpHandler) Start(ctx context.Context)
Start starts the HTTP service and listens for requests.
Click to show internal directories.
Click to hide internal directories.