mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
25 lines
578 B
Go
25 lines
578 B
Go
// Copyright (c) Alex Ellis 2017. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
package queue
|
|
|
|
import "net/url"
|
|
import "net/http"
|
|
|
|
// Request for asynchronous processing
|
|
type Request struct {
|
|
Header http.Header
|
|
Host string
|
|
Body []byte
|
|
Method string
|
|
Path string
|
|
QueryString string
|
|
Function string
|
|
CallbackURL *url.URL `json:"CallbackUrl"`
|
|
}
|
|
|
|
// CanQueueRequests can take on asynchronous requests
|
|
type CanQueueRequests interface {
|
|
Queue(req *Request) error
|
|
}
|