Extract handler_set.go

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-12-01 18:32:52 +00:00
parent 23a7187435
commit 3d210f1ff2
2 changed files with 27 additions and 21 deletions

View 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
}