handler

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Package handler contains http handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ack

func BlockQueue added in v0.4.0

func BlockQueue(w http.ResponseWriter, r *http.Request) error

func DeleteQueue

func DeleteQueue(w http.ResponseWriter, r *http.Request) error

func DequeueJobs

func DequeueJobs(w http.ResponseWriter, r *http.Request) error

func Func

func Func(fn func(w http.ResponseWriter, r *http.Request) error) http.HandlerFunc

func GetJobByID

func GetJobByID(w http.ResponseWriter, r *http.Request) error

func GetQueueByID

func GetQueueByID(w http.ResponseWriter, r *http.Request) error

func GetQueueByJobID

func GetQueueByJobID(w http.ResponseWriter, r *http.Request) error

func ListJobs

func ListJobs(w http.ResponseWriter, r *http.Request) error

func ListQueues

func ListQueues(w http.ResponseWriter, r *http.Request) error

func MarshalResponse

func MarshalResponse(w http.ResponseWriter, r *http.Request, v proto.Message) error

func MethodNotAllowed

func MethodNotAllowed(w http.ResponseWriter, r *http.Request) error

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request) error

func PauseQueue added in v0.4.0

func PauseQueue(w http.ResponseWriter, r *http.Request) error

func SaveQueue

func SaveQueue(w http.ResponseWriter, r *http.Request) error

func Stats

func Stats(w http.ResponseWriter, r *http.Request) error

func UnblockQueue added in v0.4.0

func UnblockQueue(w http.ResponseWriter, r *http.Request) error

func UnmarshalBody

func UnmarshalBody(r *http.Request, v interface{}, required bool) error

func UnpauseQueue added in v0.4.0

func UnpauseQueue(w http.ResponseWriter, r *http.Request) error

Types

type EnqueueJobs

type EnqueueJobs struct {
}

func (*EnqueueJobs) ServeHTTP

func (h *EnqueueJobs) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL