Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTCPServer ¶
RunTCPServer is an accept-loop with a support of graceful shutdown. Graceful shutdown can be initialized by sending a notifier into the sd chan. In this case accept-loop still will wait for a connection, but after it'll be accepted RunTCPServer will wait for all the connections to be closed, returning status.ErrShutdown error in a result
Types ¶
Click to show internal directories.
Click to hide internal directories.