Documentation
¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_SOCKET_FILE = "/tmp/tcp-graceful.sock"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleTcpConns ¶
type TcpConnManager ¶
func NewTcpConnManager ¶
func NewTcpConnManager() *TcpConnManager
func (*TcpConnManager) Add ¶
func (m *TcpConnManager) Add(num int64)
func (*TcpConnManager) Done ¶
func (m *TcpConnManager) Done()
func (*TcpConnManager) NoAliveConn ¶
func (m *TcpConnManager) NoAliveConn() bool
type TcpServer ¶
type TcpServer struct {
// contains filtered or unexported fields
}
func NewTcpServerFromENV ¶
NewTcpServerFromENV ...
func (*TcpServer) GetListenerFD ¶
getListenerFD ...
func (*TcpServer) HandleAccept ¶
func (s *TcpServer) HandleAccept(handleTcpConn HandleTcpConns)
handleAccept ...
func (*TcpServer) WaitAllConnectionsQuit ¶
func (s *TcpServer) WaitAllConnectionsQuit()
Click to show internal directories.
Click to hide internal directories.