mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
20 lines
358 B
Go
20 lines
358 B
Go
package queue
|
|
|
|
import "net/url"
|
|
import "net/http"
|
|
|
|
// Request for asynchronous processing
|
|
type Request struct {
|
|
Header http.Header
|
|
Body []byte
|
|
Method string
|
|
CallbackURL url.URL
|
|
QueryString string
|
|
Function string
|
|
}
|
|
|
|
// CanQueueRequests can take on asynchronous requests
|
|
type CanQueueRequests interface {
|
|
Queue(req *Request) error
|
|
}
|