MCPcopy
hub / github.com/kubeedge/kubeedge / WriteToLocalConnection

Method WriteToLocalConnection

edge/pkg/edgestream/tunnel.go:143–147  ·  view source on GitHub ↗
(m *stream.Message)

Source from the content-addressed store, hash-verified

141}
142
143func (s *TunnelSession) WriteToLocalConnection(m *stream.Message) {
144 if con, ok := s.GetLocalConnection(m.ConnectID); ok {
145 con.CacheTunnelMessage(m)
146 }
147}
148
149func (s *TunnelSession) startPing(ctx context.Context) {
150 t := time.NewTicker(time.Second * 5)

Callers 1

ServeMethod · 0.95

Calls 2

GetLocalConnectionMethod · 0.95
CacheTunnelMessageMethod · 0.65

Tested by

no test coverage detected