Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunServerOnRandomPort ¶
func RunServerOnRandomPort( ctx context.Context, handler func(received []byte, bytesRead int) (response []byte, closeConnection bool), ) (string, error)
RunServerOnRandomPort is low level helper function for testing modbus packets. Method starts server in separate goroutine and runs it until given context is cancelled. Given PacketAssembler is used by server to handle incoming data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.