MCPcopy Create free account
hub / github.com/devspace-sh/devspace / NewStdStreamJoint

Function NewStdStreamJoint

helper/util/joint.go:41–49  ·  view source on GitHub ↗

NewStdStreamJoint is used to implement the connection interface so we can connect to the rpc server

(in io.Reader, out io.Writer, exitOnClose bool)

Source from the content-addressed store, hash-verified

39
40// NewStdStreamJoint is used to implement the connection interface so we can connect to the rpc server
41func NewStdStreamJoint(in io.Reader, out io.Writer, exitOnClose bool) *StdStreamJoint {
42 return &StdStreamJoint{
43 local: NewStdinAddr("local"),
44 remote: NewStdinAddr("remote"),
45 in: in,
46 out: out,
47 exitOnClose: exitOnClose,
48 }
49}
50
51// LocalAddr implements interface
52func (s *StdStreamJoint) LocalAddr() net.Addr {

Callers 4

StartUpstreamServerFunction · 0.92
StartDownstreamServerFunction · 0.92
StartTunnelServerFunction · 0.92
NewClientConnectionFunction · 0.85

Calls 1

NewStdinAddrFunction · 0.85

Tested by

no test coverage detected