MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / Init

Function Init

cmd/controller/app/server.go:51–61  ·  view source on GitHub ↗
(runOptions *options.ControllerOptions)

Source from the content-addressed store, hash-verified

49}
50
51func 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
63func wrapRouter(controller *controller.Controller, runOptions *options.ControllerOptions) func(ctx *fasthttp.RequestCtx) {
64 router := routing.New()

Callers 1

RunFunction · 0.70

Calls 3

InitFunction · 0.92
NewControllerCallClientFunction · 0.92
InitWithClientFunction · 0.92

Tested by

no test coverage detected