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

How to implement file upload without start a HTTP servier? #2733

Open
VetchM opened this issue Sep 24, 2024 · 0 comments
Open

How to implement file upload without start a HTTP servier? #2733

VetchM opened this issue Sep 24, 2024 · 0 comments

Comments

@VetchM
Copy link

VetchM commented Sep 24, 2024

Hi, I just started using this framework, and I wonder how to implement an RPC that supports a file upload function. The example I found online requires starting an HTTP server. Is there a way to achieve this using just the RPC method? I mena something like this:

type Request struct {
}

type Response struct {
}

type FileServer struct{}

func (h *Helloworld) Upload(ctx context.Context, req *Request, rsp *Response) error {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant