Documentation
¶
Index ¶
- type Active
- type Bind
- type Body
- type IQ
- type Message
- type Ping
- type Query
- type Request
- type Server
- func (srv *Server) HandleQuery(query string, handler func(io.Writer, Request))
- func (srv Server) ListenAndServe(protocol, addr string) error
- func (srv *Server) SetAuthFunc(authenticate func(username, password string) bool)
- func (srv *Server) SetHandleIncomingMessage(handle func(msg XmppMessage))
- func (srv *Server) SetKeyPair(certfile, keyfile string) error
- type Stream
- type StreamError
- type XmppMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { MessageChannel chan Message // contains filtered or unexported fields }
func (*Server) HandleQuery ¶
func (Server) ListenAndServe ¶
func (*Server) SetAuthFunc ¶
func (*Server) SetHandleIncomingMessage ¶
func (srv *Server) SetHandleIncomingMessage(handle func(msg XmppMessage))
func (*Server) SetKeyPair ¶
type Stream ¶
type Stream struct { XMLName xml.Name `xml:"http://etherx.jabber.org/streams stream"` To string `xml:"to,attr,omitempty"` From string `xml:"from,attr,omitempty"` Language string `xml:"lang,attr,omitempty"` Id string `xml:"id,attr,omitempty"` Stream string `xml:"http://etherx.jabber.org/streams stream,attr,omitempty"` Version string `xml:"version,attr,omitempty"` }
Stream represents an XMPP stream.
type StreamError ¶
type StreamError struct { Condition string // one of the conditions from §4.9.3 of RFC 6120 Message string }
StreamError is a generic error related to a stream.
Click to show internal directories.
Click to hide internal directories.