Skip to content

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

@VetchM

Description

@VetchM

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 {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions