-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Mongodb protocol ParseStream() #253
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -83,3 +87,55 @@ func (d *BinaryDecoder) ExtractByte() (byte, error) { | |||
d.readBytes++ | |||
return x, nil | |||
} | |||
|
|||
func ExtractBEInt[TIntType int32 | uint32 | uint8](d *BinaryDecoder) (TIntType, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add some unit tests for these utility functions.
} | ||
|
||
// FormatToSummaryString implements protocol.ParsedMessage. | ||
func (m *MongoDBFrame) FormatToSummaryString() string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method has already been removed in the latest code. You might want to rebase onto the current main branch.
先把目前修改的ParseStream推上来试试 大佬有空可以先看看 我争取这周能理清并跑通整个MongoDB的协议解析