MCPcopy Create free account
hub / github.com/featureform/featureform / parseSourceStream

Method parseSourceStream

metadata/client.go:840–852  ·  view source on GitHub ↗
(stream sourceStream)

Source from the content-addressed store, hash-verified

838}
839
840func (client *Client) parseSourceStream(stream sourceStream) ([]*Source, error) {
841 sources := make([]*Source, 0)
842 for {
843 serial, err := stream.Recv()
844 if err == io.EOF {
845 break
846 } else if err != nil {
847 return nil, err
848 }
849 sources = append(sources, wrapProtoSource(serial))
850 }
851 return sources, nil
852}
853
854type sourceVariantStream interface {
855 Recv() (*pb.SourceVariant, error)

Callers 2

ListSourcesMethod · 0.95
GetSourcesMethod · 0.95

Calls 2

wrapProtoSourceFunction · 0.85
RecvMethod · 0.65

Tested by

no test coverage detected