MCPcopy Create free account
hub / github.com/andeya/erpc / postReadPushHeader

Method postReadPushHeader

plugin.go:588–599  ·  view source on GitHub ↗

PostReadPushHeader executes the defined plugins after reading PUSH message header.

(ctx ReadCtx)

Source from the content-addressed store, hash-verified

586
587// PostReadPushHeader executes the defined plugins after reading PUSH message header.
588func (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.
602func (p *pluginSingleContainer) preReadPushBody(ctx ReadCtx) *Status {

Callers 1

bindPushMethod · 0.80

Calls 4

ErrorfFunction · 0.85
PostReadPushHeaderMethod · 0.65
NameMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected