mirror of
https://github.com/fatedier/frp.git
synced 2025-07-29 01:07:38 +00:00
Code refactoring related to message handling and retry logic. (#3745)
This commit is contained in:
@@ -29,7 +29,9 @@ type MessageTransporter interface {
|
||||
// Recv(ctx context.Context, laneKey string, msgType string) (Message, error)
|
||||
// Do will first send msg, then recv msg with the same laneKey and specified msgType.
|
||||
Do(ctx context.Context, req msg.Message, laneKey, recvMsgType string) (msg.Message, error)
|
||||
// Dispatch will dispatch message to releated channel registered in Do function by its message type and laneKey.
|
||||
Dispatch(m msg.Message, laneKey string) bool
|
||||
// Same with Dispatch but with specified message type.
|
||||
DispatchWithType(m msg.Message, msgType, laneKey string) bool
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user