MCPcopy Create free account
hub / github.com/pires/go-proxyproto / clientConfig

Struct clientConfig

protocol_test.go:70–79  ·  view source on GitHub ↗

clientConfig parameterizes the standard test client goroutine run by runClient.

Source from the content-addressed store, hash-verified

68
69// clientConfig parameterizes the standard test client goroutine run by runClient.
70type clientConfig struct {
71 network string // dial network, defaults to "tcp"
72 addr string // dial target
73 header *Header // written before the payload when set
74 payload []byte // written after the header; defaults to "ping" when nil, unless headerOnly is set
75 headerOnly bool // write only the header (if any) and no payload
76 expectEcho []byte // read back and compared when set
77 closeAfter bool // close the connection after writing instead of on cleanup
78 connectOnly bool // only dial, write nothing
79}
80
81// runClient launches the standard client goroutine and returns a channel that
82// is closed on success or receives the first error.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected