MCPcopy
hub / github.com/aceld/zinx / Proceed

Method Proceed

zinterceptor/chain.go:28–36  ·  view source on GitHub ↗
(request ziface.IcReq)

Source from the content-addressed store, hash-verified

26}
27
28func (c *Chain) Proceed(request ziface.IcReq) ziface.IcResp {
29 if c.position < len(c.interceptors) {
30 chain := NewChain(c.interceptors, c.position+1, request)
31 interceptor := c.interceptors[c.position]
32 response := interceptor.Intercept(chain)
33 return response
34 }
35 return request
36}
37
38// GetIMessage Get IMessage from the Chain (从Chain中获取IMessage)
39func (c *Chain) GetIMessage() ziface.IMessage {

Callers 2

ProceedWithIMessageMethod · 0.95
ExecuteMethod · 0.95

Calls 2

NewChainFunction · 0.85
InterceptMethod · 0.65

Tested by

no test coverage detected