Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

AvaIon
Copy link

@AvaIon AvaIon commented Jan 6, 2025

先把目前修改的ParseStream推上来试试 大佬有空可以先看看 我争取这周能理清并跑通整个MongoDB的协议解析

Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kyanos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 3:14am

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jan 6, 2025
@@ -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) {
Copy link
Owner

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 {
Copy link
Owner

@hengyoush hengyoush Jan 6, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants