dummy

package
v0.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNopClient

func NewNopClient() tcp.Client

func NewNopConn

func NewNopConn() net.Conn

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL