mirror of
https://github.com/openfaas/faas.git
synced 2025-06-25 00:03:24 +00:00
Extract handler_set.go
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
20
gateway/types/handler_set.go
Normal file
20
gateway/types/handler_set.go
Normal file
@ -0,0 +1,20 @@
|
||||
package types
|
||||
|
||||
import "net/http"
|
||||
|
||||
// HandlerSet can be initialized with handlers for binding to mux
|
||||
type HandlerSet struct {
|
||||
Proxy http.HandlerFunc
|
||||
DeployFunction http.HandlerFunc
|
||||
DeleteFunction http.HandlerFunc
|
||||
ListFunctions http.HandlerFunc
|
||||
Alert http.HandlerFunc
|
||||
RoutelessProxy http.HandlerFunc
|
||||
UpdateFunction http.HandlerFunc
|
||||
|
||||
// QueuedProxy - queue work and return synchronous response
|
||||
QueuedProxy http.HandlerFunc
|
||||
|
||||
// AsyncReport - report a deferred execution result
|
||||
AsyncReport http.HandlerFunc
|
||||
}
|
Reference in New Issue
Block a user