Versions in this module Expand all Collapse all v1 v1.0.0 Aug 16, 2024 Changes in this version + var DefaultPayloadFormatter = PayloadFormatterFunc(func(_ string, payload []byte) string { ... }) + var DefaultResultFormatter = ResultFormatterFunc(func(_ string, result []byte) string { ... }) + type HTTPHandler struct + func New(opts Options) *HTTPHandler + func (h *HTTPHandler) Close() error + func (h *HTTPHandler) RootPath() string + func (h *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + PayloadFormatter PayloadFormatter + PrometheusAddress string + ReadOnly bool + RedisConnOpt asynq.RedisConnOpt + ResultFormatter ResultFormatter + RootPath string + type PayloadFormatter interface + FormatPayload func(taskType string, payload []byte) string + type PayloadFormatterFunc func(string, []byte) string + func (f PayloadFormatterFunc) FormatPayload(taskType string, payload []byte) string + type ResultFormatter interface + FormatResult func(taskType string, result []byte) string + type ResultFormatterFunc func(string, []byte) string + func (f ResultFormatterFunc) FormatResult(taskType string, result []byte) string