-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add create bridge core function logic
- Loading branch information
1 parent
7f1883a
commit d7cd8d5
Showing
5 changed files
with
165 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package core | ||
|
||
// Message types. | ||
const ( | ||
// messageIncomingReq is the type for an incoming message request. | ||
// messageIncomingReq string = "INCOMING_MESSAGE_REQ" | ||
// messageOutgoingReq is the type for an outgoing message request. | ||
// messageOutgoingReq string = "OUTGOING_MESSAGE_REQ" | ||
// messageOutgoingRes is the type for an outgoing message response. | ||
// messageOutgoingRes string = "OUTGOING_MESSAGE_RES" | ||
// messageErrorRes is the type for all error messages. | ||
messageErrorRes string = "ERROR_RES" | ||
) | ||
|
||
// Persistence modes. | ||
const ( | ||
// persistTrue always persists the message. | ||
// persistTrue = "true" | ||
// persistFalse never persists the message. If the receiver is offline, the message is lost forever. | ||
// persistFalse = "false" | ||
// persistIfError persists the message only if there's an error while sending the message. | ||
// persistIfError = "if_error" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters