MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / unmarshalSetup

Method unmarshalSetup

agentprotocol/server.go:404–411  ·  view source on GitHub ↗
(payload []byte)

Source from the content-addressed store, hash-verified

402}
403
404func (c *ForwardCtx) unmarshalSetup(payload []byte) (SetupPacket, error) {
405 packet := SetupPacket{}
406 err := cbor.Unmarshal(payload, &packet)
407 if err != nil {
408 return packet, err
409 }
410 return packet, nil
411}
412
413func (c *ForwardCtx) unmarshalNewConnection(payload []byte) (NewConnectionPayload, error) {
414 packet := NewConnectionPayload{}

Callers 1

StartClientMethod · 0.95

Calls 1

UnmarshalMethod · 0.80

Tested by

no test coverage detected