Documentation
¶
Index ¶
- type Connection
- type Server
- func (s *Server) Accept() (string, error)
- func (s *Server) Close() error
- func (s *Server) GetConnection(id string) (net.Conn, error)
- func (s *Server) RemoveConnection(id string) error
- func (s *Server) Send(id string, payload []byte) error
- func (s *Server) SetConnection(conn net.Conn) (string, error)
- func (s *Server) SetOnConnect(f func(id string))
- func (s *Server) SetOnData(f func(id string, payload []byte))
- func (s *Server) SetOnDisconnect(f func(id string))
- func (s *Server) SetOnError(f func(id string, err error))
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RemoveConnection ¶
func (*Server) SetOnConnect ¶
func (*Server) SetOnDisconnect ¶
func (*Server) SetOnError ¶
Click to show internal directories.
Click to hide internal directories.