(runOptions *options.ControllerOptions)
| 49 | } |
| 50 | |
| 51 | func Init(runOptions *options.ControllerOptions) (app *controller.Controller, err error) { |
| 52 | app, err = controller.Init(runOptions) |
| 53 | if err != nil { |
| 54 | return nil, err |
| 55 | } |
| 56 | if runOptions.HTTPEnhanced { |
| 57 | c := client.NewControllerCallClient(app, app.FuncletClient, runOptions) |
| 58 | httptrigger.InitWithClient(c) |
| 59 | } |
| 60 | return |
| 61 | } |
| 62 | |
| 63 | func wrapRouter(controller *controller.Controller, runOptions *options.ControllerOptions) func(ctx *fasthttp.RequestCtx) { |
| 64 | router := routing.New() |
no test coverage detected