Skip to content

Pull request proxy frame#19

Open
joeldejesus1 wants to merge 3 commits intosiderolabs:mainfrom
noncepad:pull-request-proxy-frame
Open

Pull request proxy frame#19
joeldejesus1 wants to merge 3 commits intosiderolabs:mainfrom
noncepad:pull-request-proxy-frame

Conversation

@joeldejesus1
Copy link
Copy Markdown

I changed proxy.frame to proxy.Frame and added a Size() int method to allow the proxy to measure data throughput in an interceptor.

Comment thread proxy/codec.go
}

type frame struct {
type Frame struct {
Copy link
Copy Markdown
Member

@smira smira May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to expose this type as public, we can keep it frame, and add an interface

type SizeableFrame interface {
    FrameSize() int
}

This way any interceptor can typecast the payload and see if it implements the interface.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. I can change my request to do that instead.

@smira
Copy link
Copy Markdown
Member

smira commented May 8, 2024

I'll push some changes to main, please squash your commits, make signed-off (no need to sign with GPG) and make sure make passes for your

@smira smira self-assigned this May 9, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions Bot added the Stale label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants