Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNopClient ¶
func NewNopConn ¶
Types ¶
type CircularClient ¶ added in v0.7.4
type CircularClient struct {
// contains filtered or unexported fields
}
CircularClient is a client that on every read-operation returns the same data as it was initialised with. This is used mainly for benchmarking
func NewCircularClient ¶
func NewCircularClient(data ...[]byte) *CircularClient
func (*CircularClient) Close ¶ added in v0.7.4
func (c *CircularClient) Close() error
func (*CircularClient) OneTime ¶ added in v0.7.4
func (c *CircularClient) OneTime()
func (*CircularClient) Read ¶ added in v0.7.4
func (c *CircularClient) Read() ([]byte, error)
func (*CircularClient) Remote ¶ added in v0.7.4
func (*CircularClient) Remote() net.Addr
func (*CircularClient) Unread ¶ added in v0.7.4
func (c *CircularClient) Unread(takeback []byte)
func (*CircularClient) Write ¶ added in v0.7.4
func (*CircularClient) Write([]byte) error
Click to show internal directories.
Click to hide internal directories.