Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(baseCtx context.Context, port string, priceSvc *price.Service, jobSvc *job.Service) *Server
New creates a server. The baseCtx is used as the base context for all incoming requests (via BaseContext). Cancelling it causes in-flight scraper workers to stop promptly during graceful shutdown.
Click to show internal directories.
Click to hide internal directories.