Documentation ¶
Index ¶
- func HasAccessExternalApi() (bool, error)
- func ProcessQueries(params map[string][]string) map[string]string
- func SendErrorResponse(w http.ResponseWriter, message string, statusCode int)
- type Server
- func (s *Server) CreateQuote(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateRoutes(router *mux.Router, db *database.Database)
- func (s *Server) GetMetrics(w http.ResponseWriter, r *http.Request)
- func (s *Server) Ping(w http.ResponseWriter, r *http.Request)
- func (s *Server) Run() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAccessExternalApi ¶
func SendErrorResponse ¶
func SendErrorResponse(w http.ResponseWriter, message string, statusCode int)
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateQuote ¶
func (s *Server) CreateQuote(w http.ResponseWriter, r *http.Request)
func (*Server) CreateRoutes ¶
func (*Server) GetMetrics ¶
func (s *Server) GetMetrics(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.