Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StdoutClient ¶
type StdoutClient struct { }
StdoutClient writes messages to stardard out. It was useful for development.
func (*StdoutClient) Name ¶
func (c *StdoutClient) Name() string
func (*StdoutClient) Send ¶
func (c *StdoutClient) Send(lines []Data) error
type TestClient ¶
type TestClient struct { DataSent []Data // Set Error to return an error to clients when they call Send. It is useful // for testing how they react to errors. Error error }
TestClient is an in-memory client that allows inspecting the data that was 'sent' thorugh it. It is useful in test cases.
func (*TestClient) Name ¶
func (c *TestClient) Name() string
func (*TestClient) Send ¶
func (c *TestClient) Send(lines []Data) error
Click to show internal directories.
Click to hide internal directories.