MCPcopy
hub / github.com/mudler/LocalAI / embedBackendForwardStreamClient

Struct embedBackendForwardStreamClient

pkg/grpc/embed.go:817–823  ·  view source on GitHub ↗

embedBackendForwardStreamClient is the caller-facing side. Mirrors the server-side stream over the same channels.

Source from the content-addressed store, hash-verified

815// embedBackendForwardStreamClient is the caller-facing side. Mirrors
816// the server-side stream over the same channels.
817type embedBackendForwardStreamClient struct {
818 ctx context.Context
819 reqs chan<- *pb.ForwardRequest
820 resps <-chan *pb.ForwardReply
821 srvDone <-chan error
822 once sync.Once
823}
824
825func (e *embedBackendForwardStreamClient) Send(req *pb.ForwardRequest) error {
826 select {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected