Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderNameXProxqSource = proxqtypes.HeaderNameXProxqSource HeaderNameXProxqTimeout = proxqtypes.HeaderNameXProxqTimeout HeaderValueProxq = proxqtypes.HeaderValueProxq )
View Source
const DefaultQueue = "default"
View Source
const TaskTypeName = "proxy:request"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( client *asynq.Client, cfg HandlerConfig, ) *Handler
type HandlerConfig ¶
type HandlerConfig struct {
Upstreams []UpstreamConfig
Queue string
TaskRetention time.Duration
}
type JobsHandler ¶
type JobsHandler struct {
// contains filtered or unexported fields
}
func NewJobsHandler ¶
func NewJobsHandler( inspector *asynq.Inspector, queue string, ) *JobsHandler
func (*JobsHandler) Cancel ¶
func (h *JobsHandler) Cancel( w http.ResponseWriter, r *http.Request, )
func (*JobsHandler) Content ¶
func (h *JobsHandler) Content( w http.ResponseWriter, r *http.Request, )
func (*JobsHandler) Get ¶
func (h *JobsHandler) Get( w http.ResponseWriter, r *http.Request, )
type UpstreamConfig ¶
Click to show internal directories.
Click to hide internal directories.