Documentation
¶
Index ¶
- type FakeConn
- func (c *FakeConn) AssertClose(t *testing.T, done chan bool)
- func (c *FakeConn) AssertNextWriteMsg(t *testing.T) Msg
- func (c *FakeConn) Close() error
- func (c *FakeConn) NewMessageToRead(r io.Reader)
- func (c *FakeConn) NextReader() (int, io.Reader, error)
- func (c *FakeConn) NextWriter(messagetype int) (io.WriteCloser, error)
- type Msg
- type ReaderOrErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeConn ¶
type FakeConn struct {
// Write an error to this channel to stop the Read consumer
ReadCh chan ReaderOrErr
// Consume messages written to this channel. The caller should Ack() to acknowledge receipt.
WriteCh chan Msg
Closed bool
NextWriterError error
}
func NewFakeConn ¶
func NewFakeConn() *FakeConn
func (*FakeConn) NewMessageToRead ¶
func (*FakeConn) NextWriter ¶
func (c *FakeConn) NextWriter(messagetype int) (io.WriteCloser, error)
type ReaderOrErr ¶
Click to show internal directories.
Click to hide internal directories.