(upd mess.Update)
| 103 | } |
| 104 | |
| 105 | func (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 | |
| 121 | func (usp *UnixSockPipe) Close() error { |
| 122 | if usp.sender != nil { |
nothing calls this directly
no test coverage detected