Documentation
¶
Index ¶
- type Handler
- func (d *Handler) GetClientInterface() gate.Gateway
- func (d *Handler) GetGroupInterface() subscription.Interface
- func (d *Handler) Handle(cInfo *gate.Info, msg *messages.GlideMessage) error
- func (d *Handler) PutMessageHandler(action messages.Action, i HandlerFunc)
- func (d *Handler) Run() error
- func (d *Handler) SetGate(g gate.Gateway)
- func (d *Handler) SetSubscription(g subscription.Interface)
- type HandlerFunc
- type Interface
- type Messaging
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler default implementation of the messaging interface.
func NewDefaultImpl ¶
func NewDefaultImpl(store store.MessageStore) (*Handler, error)
func (*Handler) GetClientInterface ¶
func (*Handler) GetGroupInterface ¶
func (d *Handler) GetGroupInterface() subscription.Interface
func (*Handler) PutMessageHandler ¶
func (d *Handler) PutMessageHandler(action messages.Action, i HandlerFunc)
func (*Handler) SetSubscription ¶
func (d *Handler) SetSubscription(g subscription.Interface)
type HandlerFunc ¶
type HandlerFunc func(cliInfo *gate.Info, message *messages.GlideMessage) error
type Interface ¶
type Interface interface {
// Handle handles message from gate, the entry point for the messaging.
Handle(clientInfo *gate.Info, msg *messages.GlideMessage) error
// PutMessageHandler registers a handler for a message type/action.
// If the handler is existing, it will be replaced.
PutMessageHandler(action messages.Action, i HandlerFunc)
}
Interface for messaging.
Click to show internal directories.
Click to hide internal directories.