Package rc5424test provides utilities for testing RFC 5424.
Handler defines an interface for handling RFC5424 messages.
HandlerFunc is a Handler that is implemented as a function.
Message contains the content and origin address of an RFC5424 message.
Server is a server for testing the receipt of RFC5424 messages.
NewServer creates a new Server which will invoke the given Handler for received messages. The server will listen for connections on localhost, on an ephemeral port. The listening address can be obtained by inspecting the Server's Listener field.
The Server returned will not listen for connections until Start is called.
Close closes any client connections, and stops the server from accepting any new ones.
Start starts the server listening for client connections.
StartTLS starts the server listening for client connections using TLS.