MCPcopy
hub / github.com/Allenxuxu/gev / CallBack

Interface CallBack

server_std.go:143–146  ·  view source on GitHub ↗

connection

Source from the content-addressed store, hash-verified

141// connection
142
143type CallBack interface {
144 OnMessage(c *Connection, ctx interface{}, data []byte) interface{}
145 OnClose(c *Connection)
146}
147
148// Connection TCP 连接
149type Connection struct {

Callers

nothing calls this directly

Implementers 15

exampleserver_test.go
example1server_test.go
example2server_conn_test.go
example3server_conn_test.go
exampleexample/protocol/server.go
exampleexample/echo/main.go
exampleexample/protobuf/server/main.go
Serverexample/maxconnection/main.go
wsExampleexample/websocket/wsserver_test.go
exampleexample/websocket/main.go
exampleexample/sendAsync/main.go
Serverexample/pushmessage/main.go

Calls

no outgoing calls

Tested by

no test coverage detected