faas/gateway/queue/types.go
Alex Ellis bd146f526c Sync async_nats work with master
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00

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
}