MCPcopy
hub / github.com/TarsCloud/TarsGo / ServerProtocol

Interface ServerProtocol

tars/transport/common.go:26–32  ·  view source on GitHub ↗

ServerProtocol is interface for handling the server side tars package.

Source from the content-addressed store, hash-verified

24
25// ServerProtocol is interface for handling the server side tars package.
26type ServerProtocol interface {
27 Invoke(ctx context.Context, pkg []byte) []byte
28 ParsePackage(buff []byte) (int, int)
29 InvokeTimeout(pkg []byte) []byte
30 GetCloseMsg() []byte
31 DoClose(ctx context.Context)
32}
33
34// ClientProtocol interface for handling tars client package.
35type ClientProtocol interface {

Callers 6

invokeMethod · 0.65
recvMethod · 0.65
recvMethod · 0.65
invokeMethod · 0.65
sendCloseMsgMethod · 0.65
recvMethod · 0.65

Implementers 4

Protocoltars/tarsprotocol.go
MyServertars/transport/_examples/helloserver/s
MyServertars/transport/_examples/udpserver/ser
CustomProtocolImpexamples/CustomProtoServer/CustomProto

Calls

no outgoing calls

Tested by

no test coverage detected