JoinMessages concatenates received messages to create a single io.Reader. The string term is appended to each message. The returned reader does not support concurrent calls to the Read method.
(c *Conn, term string)
| 13 | // The string term is appended to each message. The returned reader does not |
| 14 | // support concurrent calls to the Read method. |
| 15 | func JoinMessages(c *Conn, term string) io.Reader { |
| 16 | return &joinReader{c: c, term: term} |
| 17 | } |
| 18 | |
| 19 | type joinReader struct { |
| 20 | c *Conn |
no outgoing calls