Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher type
func Create ¶
func Create(config *config.Config, store *auth.Store) *Dispatcher
Create returns a new instance of the Dispatcher
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch( msg *message.Message, sender *connection, )
Dispatch sends messages to listening clients
func (*Dispatcher) ProcessMessage ¶
func (d *Dispatcher) ProcessMessage( msg *message.Message, sender *connection, )
ProcessMessage is parsing and routing the messages to the correct functions
func (*Dispatcher) Serve ¶
func (d *Dispatcher) Serve()
Serve listens for incomming connections and messages
Click to show internal directories.
Click to hide internal directories.