(request ziface.IcReq)
| 26 | } |
| 27 | |
| 28 | func (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) |
| 39 | func (c *Chain) GetIMessage() ziface.IMessage { |
no test coverage detected