MCPcopy
hub / github.com/davyxu/cellnet / Peer

Interface Peer

peer.go:4–13  ·  view source on GitHub ↗

端, 可通过接口查询获得更多接口支持,如PeerProperty,ContextSet, SessionAccessor

Source from the content-addressed store, hash-verified

2
3// 端, 可通过接口查询获得更多接口支持,如PeerProperty,ContextSet, SessionAccessor
4type Peer interface {
5 // 开启端,传入地址
6 Start() Peer
7
8 // 停止通讯端
9 Stop()
10
11 // Peer的类型(protocol.type),例如tcp.Connector/udp.Acceptor
12 TypeName() string
13}
14
15// Peer基础属性
16type PeerProperty interface {

Callers 11

StartMethod · 0.65
StartMethod · 0.65
connectMethod · 0.65
StartMethod · 0.65
onNewSessionMethod · 0.65
connectMethod · 0.65
serverFunction · 0.65
clientFunction · 0.65
RegisterMessageMetaFunction · 0.65
MessageToNameFunction · 0.65
RegisterPeerCreatorFunction · 0.65

Implementers 12

wsSyncConnectorpeer/gorillaws/syncconn.go
wsAcceptorpeer/gorillaws/acceptor.go
wsConnectorpeer/gorillaws/connector.go
httpAcceptorpeer/http/acceptor.go
httpConnectorpeer/http/connector.go
mysqlConnectorpeer/mysql/connector.go
udpAcceptorpeer/udp/acceptor.go
udpConnectorpeer/udp/connector.go
redisConnectorpeer/redix/connector.go
tcpSyncConnectorpeer/tcp/syncconn.go
tcpAcceptorpeer/tcp/acceptor.go
tcpConnectorpeer/tcp/connector.go

Calls

no outgoing calls

Tested by

no test coverage detected