Versions in this module Expand all Collapse all v1 v1.0.3 Jun 9, 2023 Changes in this version + var TCPStatusOK = "OK" + var TCPURLPrefix = "tcp://" + func GeneratePayload(t int, i int64) []byte + type RunnerOptions struct + type RunnerResults struct + BytesReceived int64 + BytesSent int64 + RetCodes TCPResultMap + SocketCount int + func RunTCPTest(o *RunnerOptions) (*RunnerResults, error) + func (tcpstate *RunnerResults) Run(_ context.Context, t periodic.ThreadID) (bool, string) + type TCPClient struct + func NewTCPClient(o *TCPOptions) (*TCPClient, error) + func (c *TCPClient) Close() int + func (c *TCPClient) Fetch() ([]byte, error) + type TCPOptions struct + Destination string + Payload []byte + ReqTimeout time.Duration + UnixDomainSocket string + type TCPResultMap map[string]int64