MCPcopy Index your code
hub / github.com/coder/coder / Recv

Method Recv

provisionersdk/session.go:195–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193}
194
195func (f *fromChannel) Recv() (*proto.FileUpload, error) {
196 next, ok := <-f.requests
197 if !ok {
198 return nil, xerrors.New("channel closed")
199 }
200
201 // Only file download messages are expected here.
202 file := next.GetFile()
203 if file == nil {
204 return nil, xerrors.Errorf("expected file upload")
205 }
206
207 return file, nil
208}
209
210func (s *Session) handleInitRequest(init *proto.InitRequest, requests <-chan *proto.Request) (*proto.InitComplete, error) {
211 req := &InitRequest{

Callers

nothing calls this directly

Calls 3

GetFileMethod · 0.80
NewMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected