MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / BaseWrapper

Struct BaseWrapper

acceptorwrapper/base.go:36–40  ·  view source on GitHub ↗

接收器包装器 包装器可以包装接收器,以执行消息转发之前读取和更改传入的数据 创建包装器需要从BaseWrapper继承或者实现Wrapper接口然后使用WithWrappers将其添加到接收器中 BaseWrapper implements Wrapper by saving the acceptor as an attribute. Conns from acceptor.GetConnChan are processed by wrapConn and forwarded to its own connChan. Any new wrapper can inherit from BaseW

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected