@@ -10,7 +10,7 @@ import (
1010 "strings"
1111
1212 "github.com/openfaas-incubator/of-watchdog/config"
13- "github.com/openfaas-incubator/of-watchdog/functions "
13+ "github.com/openfaas-incubator/of-watchdog/executor "
1414)
1515
1616func main () {
@@ -78,7 +78,7 @@ func lock() error {
7878func makeAfterBurnRequestHandler (watchdogConfig config.WatchdogConfig ) func (http.ResponseWriter , * http.Request ) {
7979
8080 commandName , arguments := watchdogConfig .Process ()
81- functionInvoker := functions .AfterBurnFunctionRunner {
81+ functionInvoker := executor .AfterBurnFunctionRunner {
8282 Process : commandName ,
8383 ProcessArgs : arguments ,
8484 }
@@ -88,7 +88,7 @@ func makeAfterBurnRequestHandler(watchdogConfig config.WatchdogConfig) func(http
8888
8989 return func (w http.ResponseWriter , r * http.Request ) {
9090
91- req := functions .FunctionRequest {
91+ req := executor .FunctionRequest {
9292 Process : commandName ,
9393 ProcessArgs : arguments ,
9494 InputReader : r .Body ,
@@ -109,7 +109,7 @@ func makeAfterBurnRequestHandler(watchdogConfig config.WatchdogConfig) func(http
109109}
110110
111111func makeSerializingForkRequestHandler (watchdogConfig config.WatchdogConfig ) func (http.ResponseWriter , * http.Request ) {
112- functionInvoker := functions .SerializingForkFunctionRunner {
112+ functionInvoker := executor .SerializingForkFunctionRunner {
113113 ExecTimeout : watchdogConfig .ExecTimeout ,
114114 }
115115
@@ -122,7 +122,7 @@ func makeSerializingForkRequestHandler(watchdogConfig config.WatchdogConfig) fun
122122 }
123123
124124 commandName , arguments := watchdogConfig .Process ()
125- req := functions .FunctionRequest {
125+ req := executor .FunctionRequest {
126126 Process : commandName ,
127127 ProcessArgs : arguments ,
128128 InputReader : r .Body ,
@@ -140,7 +140,7 @@ func makeSerializingForkRequestHandler(watchdogConfig config.WatchdogConfig) fun
140140}
141141
142142func makeForkRequestHandler (watchdogConfig config.WatchdogConfig ) func (http.ResponseWriter , * http.Request ) {
143- functionInvoker := functions .ForkFunctionRunner {
143+ functionInvoker := executor .ForkFunctionRunner {
144144 ExecTimeout : watchdogConfig .ExecTimeout ,
145145 }
146146
@@ -153,7 +153,7 @@ func makeForkRequestHandler(watchdogConfig config.WatchdogConfig) func(http.Resp
153153 }
154154
155155 commandName , arguments := watchdogConfig .Process ()
156- req := functions .FunctionRequest {
156+ req := executor .FunctionRequest {
157157 Process : commandName ,
158158 ProcessArgs : arguments ,
159159 InputReader : r .Body ,
@@ -196,7 +196,7 @@ func getEnvironment(r *http.Request) []string {
196196
197197func makeHTTPRequestHandler (watchdogConfig config.WatchdogConfig ) func (http.ResponseWriter , * http.Request ) {
198198 commandName , arguments := watchdogConfig .Process ()
199- functionInvoker := functions .HTTPFunctionRunner {
199+ functionInvoker := executor .HTTPFunctionRunner {
200200 Process : commandName ,
201201 ProcessArgs : arguments ,
202202 }
@@ -206,7 +206,7 @@ func makeHTTPRequestHandler(watchdogConfig config.WatchdogConfig) func(http.Resp
206206
207207 return func (w http.ResponseWriter , r * http.Request ) {
208208
209- req := functions .FunctionRequest {
209+ req := executor .FunctionRequest {
210210 Process : commandName ,
211211 ProcessArgs : arguments ,
212212 InputReader : r .Body ,
0 commit comments