MCPcopy Create free account
hub / github.com/foxcpp/maddy / Push

Method Push

internal/updatepipe/unix_pipe.go:105–119  ·  view source on GitHub ↗
(upd mess.Update)

Source from the content-addressed store, hash-verified

103}
104
105func (usp *UnixSockPipe) Push(upd mess.Update) error {
106 if usp.sender == nil {
107 if err := usp.InitPush(); err != nil {
108 return err
109 }
110 }
111
112 updStr, err := formatUpdate(usp.myID(), upd)
113 if err != nil {
114 return err
115 }
116
117 _, err = io.WriteString(usp.sender, updStr)
118 return err
119}
120
121func (usp *UnixSockPipe) Close() error {
122 if usp.sender != nil {

Callers

nothing calls this directly

Calls 3

InitPushMethod · 0.95
myIDMethod · 0.95
formatUpdateFunction · 0.85

Tested by

no test coverage detected