Documentation
¶
Index ¶
- type Config
- type Handler
- func (h *Handler) Failed(w http.ResponseWriter, req *http.Request) error
- func (h *Handler) Register(mux *http.ServeMux) *http.ServeMux
- func (h *Handler) Running(w http.ResponseWriter, req *http.Request) error
- func (h *Handler) Succeeded(w http.ResponseWriter, req *http.Request) error
- func (h *Handler) Task(w http.ResponseWriter, req *http.Request) error
- func (h *Handler) TaskCompleted(w http.ResponseWriter, req *http.Request) error
- func (h *Handler) Upcoming(w http.ResponseWriter, req *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.5.0
type Config struct {
// DB is the Backlite database.
DB *sql.DB
// BasePath is an optional base path to prepend to all URL paths.
BasePath string
// ItemsPerPage is the maximum amount of items to display per page. This defaults to 25.
ItemsPerPage int
// ReleaseAfter is the duration after which a task is released back to a queue if it has not finished executing.
// Ths defaults to one hour, but it should match the value you use in your Backlite client.
ReleaseAfter time.Duration
}
Config contains configuration for the Handler.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles HTTP requests for the Backlite UI.
func NewHandler ¶
NewHandler creates a new handler for the Backlite web UI.
func (*Handler) TaskCompleted ¶ added in v0.2.0
TaskCompleted renders a completed task.
Click to show internal directories.
Click to hide internal directories.