Versions in this module Expand all Collapse all v1 v1.5.6 Dec 23, 2019 Changes in this version + func GetGenericErrorPage() string + func GetMultipleChoicesErrorPage() string + func GetNotFoundErrorPage() string + func ShowError(w http.ResponseWriter, r *Request, msg string, code int) + func ShowMultipleChoices(w http.ResponseWriter, r *Request, list api.ManifestList) + func StartHttpServer(api *api.Api, config *ServerConfig) + func ValidateCaseErrors(r *Request) string + type CaseError struct + Msg func(*Request) string + Validator func(*Request) bool + type ErrorParams struct + Code int + Details template.HTML + Msg string + Timestamp string + type Request struct + type RoundTripper struct + Host string + Port string + func (self *RoundTripper) RoundTrip(req *http.Request) (resp *http.Response, err error) + type Server struct + func NewServer(api *api.Api) *Server + func (s *Server) BadRequest(w http.ResponseWriter, r *Request, reason string) + func (s *Server) Error(w http.ResponseWriter, r *Request, err error) + func (s *Server) HandleDelete(w http.ResponseWriter, r *Request) + func (s *Server) HandleGet(w http.ResponseWriter, r *Request) + func (s *Server) HandleGetFile(w http.ResponseWriter, r *Request) + func (s *Server) HandleGetFiles(w http.ResponseWriter, r *Request) + func (s *Server) HandleGetList(w http.ResponseWriter, r *Request) + func (s *Server) HandlePostFiles(w http.ResponseWriter, r *Request) + func (s *Server) HandlePostRaw(w http.ResponseWriter, r *Request) + func (s *Server) NotFound(w http.ResponseWriter, r *Request, err error) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServerConfig struct + Addr string + CorsString string