Documentation ¶
Index ¶
- type EventHandler
- func (h *EventHandler) Ctx() context.Context
- func (h *EventHandler) HandleAppMessage(gpk string, gme *protocoltypes.GroupMessageEvent, am *mt.AppMessage) (err error)
- func (h *EventHandler) HandleMetadataEvent(gme *protocoltypes.GroupMetadataEvent) error
- func (h *EventHandler) HandleOutOfStoreAppMessage(groupPK []byte, message *protocoltypes.OutOfStoreMessage, payload []byte) (*mt.Interaction, error)
- func (h *EventHandler) Logger() *zap.Logger
- func (h *EventHandler) WithContext(ctx context.Context) *EventHandler
- type MetaFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler(ctx context.Context, db *messengerdb.DBWrapper, metaFetcher MetaFetcher, postHandlerActions mt.EventHandlerPostActions, logger *zap.Logger, dispatcher messengerutil.Dispatcher, replay bool) *EventHandler
func (*EventHandler) Ctx ¶
func (h *EventHandler) Ctx() context.Context
func (*EventHandler) HandleAppMessage ¶
func (h *EventHandler) HandleAppMessage(gpk string, gme *protocoltypes.GroupMessageEvent, am *mt.AppMessage) (err error)
func (*EventHandler) HandleMetadataEvent ¶
func (h *EventHandler) HandleMetadataEvent(gme *protocoltypes.GroupMetadataEvent) error
func (*EventHandler) HandleOutOfStoreAppMessage ¶
func (h *EventHandler) HandleOutOfStoreAppMessage(groupPK []byte, message *protocoltypes.OutOfStoreMessage, payload []byte) (*mt.Interaction, error)
func (*EventHandler) Logger ¶
func (h *EventHandler) Logger() *zap.Logger
func (*EventHandler) WithContext ¶
func (h *EventHandler) WithContext(ctx context.Context) *EventHandler
Click to show internal directories.
Click to hide internal directories.