Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Json ¶
func Json(w http.ResponseWriter, statusCode int, payload interface{})
Types ¶
type Server ¶
type Server struct { Version string // contains filtered or unexported fields }
Server represents an HTTP server. It is meant to wrap all HTTP functionality used by the application so that dependent packages (such as cmd/pxthc) do not need to reference the "net/http" package at all.
func (*Server) InitRoutes ¶
func (s *Server) InitRoutes()
func (*Server) PrintAllRegisteredRoutes ¶
PrintAllRegisteredRoutes prints all registered routes from Chi router. definitely can be an extension to the router instead.
func (*Server) RegisterScrapers ¶
func (s *Server) RegisterScrapers()
func (*Server) RunScrapers ¶
func (s *Server) RunScrapers()
Click to show internal directories.
Click to hide internal directories.