(list []ziface.IInterceptor, pos int, req ziface.IcReq)
| 14 | } |
| 15 | |
| 16 | func NewChain(list []ziface.IInterceptor, pos int, req ziface.IcReq) ziface.IChain { |
| 17 | return &Chain{ |
| 18 | req: req, |
| 19 | position: pos, |
| 20 | interceptors: list, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func (c *Chain) Request() ziface.IcReq { |
| 25 | return c.req |