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

Function NewProxy

pkg/httptrigger/proxy.go:25–31  ·  view source on GitHub ↗
(c client.ControllerClientInterface)

Source from the content-addressed store, hash-verified

23var instance *Proxy
24
25func NewProxy(c client.ControllerClientInterface) *Proxy {
26 if instance != nil {
27 return instance
28 }
29 instance = &Proxy{client: c}
30 return instance
31}
32
33func GetProxy() *Proxy {
34 return instance

Callers 2

InitFunction · 0.85
InitWithClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected