Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackFunc ¶
type CallbackFunc func(ConnectionInterface)
type ConnectionInterface ¶
type ServerInterface ¶
type ServerInterface interface { Start(string, CallbackFunc) GetChannel() chan ConnectionInterface }
type TcpConn ¶
type TcpConn struct {
// contains filtered or unexported fields
}
func NewTcpConn ¶
func (*TcpConn) UpdateLogger ¶
type TcpServer ¶
type TcpServer struct { ChNewConn chan ConnectionInterface // contains filtered or unexported fields }
func NewTcpServer ¶
func NewTcpServer() *TcpServer
NewTcpServer cria uma nova instância de TcpServer.
func (*TcpServer) GetChannel ¶
func (t *TcpServer) GetChannel() chan ConnectionInterface
func (*TcpServer) Start ¶
func (t *TcpServer) Start(address string, fn CallbackFunc)
Click to show internal directories.
Click to hide internal directories.