MCPcopy
hub / github.com/tinode/chat / copy

Method copy

server/datamodel.go:595–601  ·  view source on GitHub ↗

Deep-shallow copy.

()

Source from the content-addressed store, hash-verified

593
594// Deep-shallow copy.
595func (src *MsgServerCtrl) copy() *MsgServerCtrl {
596 if src == nil {
597 return nil
598 }
599 dst := *src
600 return &dst
601}
602
603func (src *MsgServerCtrl) describe() string {
604 return src.Topic + " id=" + src.Id + " code=" + strconv.Itoa(src.Code) + " txt=" + src.Text

Callers 2

copyMethod · 0.45
broadcastToSessionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected