The Protocol interface abstracts the creation of low-level thrift readers and writers implementing the various protocols that the encoding supports. Protocol instances must be safe to use concurrently from multiple gourintes. However, the readers and writer that they instantiates are intended to be
| 25 | // However, the readers and writer that they instantiates are intended to be |
| 26 | // used by a single goroutine. |
| 27 | type Protocol interface { |
| 28 | NewReader(r io.Reader) Reader |
| 29 | NewWriter(w io.Writer) Writer |
| 30 | Features() Features |
| 31 | } |
| 32 | |
| 33 | // Reader represents a low-level reader of values encoded according to one of |
| 34 | // the thrift protocols. |
no outgoing calls
no test coverage detected
searching dependent graphs…