Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
Server contains all dependencies for the application.
func (*Server) IndexHandler ¶
func (s *Server) IndexHandler(w http.ResponseWriter, r *http.Request)
IndexHandler renders the index page.
type StatusRecorder ¶
type StatusRecorder struct { http.ResponseWriter Status int }
StatusRecorder allows us to capture the response status code.
func (*StatusRecorder) WriteHeader ¶
func (r *StatusRecorder) WriteHeader(status int)
WriteHeader ...
Click to show internal directories.
Click to hide internal directories.