Documentation ¶
Index ¶
- Constants
- Variables
- func EmitInvite(bus event.Bus, action string, chat entity.ChatInfo)
- func EmitMessageChange(bus event.Bus, status entity.Status, msgID string)
- func EmitNewMessage(bus event.Bus, msg entity.Message)
- type ChatEvent
- type ChatEventGroup
- type ChatEventObj
- type Empty
- type EvtObject
- type ExternalEvent
- type ExternalEventObj
- type IEvent
- type IEventGroup
- type MessageEvent
- type MessageEventGroup
- type MessageEventObj
- type Publishable
Constants ¶
View Source
const ChangeStatus = "ChangeStatus"
View Source
const ChatGroup = "ChatEvent"
Event group name
View Source
const Invite = "INVITE"
Event Names
View Source
const InviteReceived = "RECEIVED"
View Source
const InviteSent = "SENT"
Event Actions
View Source
const MessageGroup = "messaging"
View Source
const NewMessage = "NewMessage"
Variables ¶
View Source
var ChatEG = NewChatEventGroup()
View Source
var ErrNotSupported = errors.New("not implemented")
View Source
var MessagingEG = NewMessagingEventGroup()
View Source
var NewChatEvent = NewEvtObj[string, interface{}]
View Source
var NewExternalEvent = NewEvtObj[string, string]
View Source
var NewMessageEvent = NewEvtObj[entity.Status, interface{}]
Functions ¶
func EmitInvite ¶ added in v0.3.0
func EmitMessageChange ¶ added in v0.3.0
Types ¶
type ChatEventGroup ¶ added in v0.3.0
type ChatEventGroup = IEventGroup[string, interface{}]
func NewChatEventGroup ¶ added in v0.3.0
func NewChatEventGroup() ChatEventGroup
type ChatEventObj ¶ added in v0.3.0
type ExternalEvent ¶ added in v0.3.0
type ExternalEventObj ¶ added in v0.3.0
type IEventGroup ¶ added in v0.3.0
type MessageEvent ¶ added in v0.3.0
type MessageEventGroup ¶ added in v0.3.0
type MessageEventGroup = IEventGroup[entity.Status, interface{}]
func NewMessagingEventGroup ¶
func NewMessagingEventGroup() MessageEventGroup
type MessageEventObj ¶ added in v0.3.0
type Publishable ¶ added in v0.3.0
type Publishable interface {
Cast() ExternalEvent
}
Click to show internal directories.
Click to hide internal directories.