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

Method InvokeHTTPFunc

pkg/controller/rtctrl/runtime.go:405–415  ·  view source on GitHub ↗

InvokeFunc

(request *RequestInfo, invokeReq *InvokeHTTPRequest)

Source from the content-addressed store, hash-verified

403
404// InvokeFunc
405func (info *RuntimeInfo) InvokeHTTPFunc(request *RequestInfo, invokeReq *InvokeHTTPRequest) error {
406 info.requestMap.Store(request.RequestID, request)
407
408 select {
409 case info.httpRequestChan <- invokeReq:
410 default:
411 return errors.New("request queue is full")
412 }
413
414 return nil
415}
416
417// TODO: Add a timer to recreate the client ?
418func (info *RuntimeInfo) getHTTPClient() *http.Client {

Callers 2

TestSendHTTPRequestLoopFunction · 0.80
InvokeFuncMethod · 0.80

Calls 1

NewMethod · 0.80

Tested by 1

TestSendHTTPRequestLoopFunction · 0.64