PostReadPushHeader executes the defined plugins after reading PUSH message header.
(ctx ReadCtx)
| 586 | |
| 587 | // PostReadPushHeader executes the defined plugins after reading PUSH message header. |
| 588 | func (p *pluginSingleContainer) postReadPushHeader(ctx ReadCtx) *Status { |
| 589 | var stat *Status |
| 590 | for _, plugin := range p.plugins { |
| 591 | if _plugin, ok := plugin.(PostReadPushHeaderPlugin); ok { |
| 592 | if stat = _plugin.PostReadPushHeader(ctx); !stat.OK() { |
| 593 | Errorf("[PostReadPushHeaderPlugin:%s] %s", plugin.Name(), stat.String()) |
| 594 | return stat |
| 595 | } |
| 596 | } |
| 597 | } |
| 598 | return nil |
| 599 | } |
| 600 | |
| 601 | // PreReadPushBody executes the defined plugins before reading PUSH message body. |
| 602 | func (p *pluginSingleContainer) preReadPushBody(ctx ReadCtx) *Status { |
no test coverage detected