Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientDemo ¶
type ClientDemo struct { }
type ClientHandler ¶
type ClientHandler struct { }
func (*ClientHandler) Disconnect ¶
func (h *ClientHandler) Disconnect(id string) error
Disconnect default listener
type ServerDemo ¶
type ServerDemo struct{}
func (*ServerDemo) Start ¶
func (s *ServerDemo) Start(id, protocol, addr string)
type ServerHandler ¶
type ServerHandler struct { }
ServerHandler ServerHandler
func (*ServerHandler) Accept ¶
func (h *ServerHandler) Accept(conn goim.Conn, timeout time.Duration) (string, goim.Metadata, error)
Accept this connection
func (*ServerHandler) Disconnect ¶
func (h *ServerHandler) Disconnect(id string) error
Disconnect default listener
type StartOptions ¶
type StartOptions struct {
// contains filtered or unexported fields
}
StartOptions StartOptions
type TCPDialer ¶
type TCPDialer struct {
// contains filtered or unexported fields
}
func (*TCPDialer) DialAndHandshake ¶
DialAndHandshake DialAndHandshake
type WebsocketDialer ¶
type WebsocketDialer struct {
// contains filtered or unexported fields
}
WebsocketDialer WebsocketDialer
func (*WebsocketDialer) DialAndHandshake ¶
func (d *WebsocketDialer) DialAndHandshake(ctx goim.DialerContext) (net.Conn, error)
DialAndHandshake DialAndHandshake
Click to show internal directories.
Click to hide internal directories.