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

Function NewBaseWrapper

acceptorwrapper/base.go:45–50  ·  view source on GitHub ↗

把interface作为struct的一个匿名成员,就可以假设struct就是此成员interface的一个实现,而不管struct是否已经实现interface所定义的函数。 NewBaseWrapper returns an instance of BaseWrapper.

(wrapConn func(net.Conn) net.Conn)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewRateLimitingWrapperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected