clientConfig parameterizes the standard test client goroutine run by runClient.
| 68 | |
| 69 | // clientConfig parameterizes the standard test client goroutine run by runClient. |
| 70 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected