Versions in this module Expand all Collapse all v1 v1.0.0 Nov 1, 2021 Changes in this version + var ErrAccept = errors.New("accept header must be application/json; charset=utf-8") + var ErrContentType = errors.New("Content-Type header must be application/json; charset=utf-8") + type RequestHandlerFunction func(db repositories.Executor, w http.ResponseWriter, r *http.Request) + type Server struct + func (s *Server) Get(path string, f func(w http.ResponseWriter, r *http.Request)) + func (s *Server) Health(path string, f func(w http.ResponseWriter, r *http.Request)) + func (s *Server) Initialize() + func (s *Server) Post(path string, f func(w http.ResponseWriter, r *http.Request)) + func (s *Server) Run(addr string)