Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiServerEventInterface ¶
type ApiServerEventInterface interface {
ToJson() []byte
}
type ApiServerEventType ¶
type ApiServerEventType string
const ( ApiServerNewNotificationEvent ApiServerEventType = "NewNotification" ApiServerNewMessageEvent ApiServerEventType = "NewMessage" ApiServerChatAssignmentEvent ApiServerEventType = "ChatAssignment" ApiServerChatUnAssignmentEvent ApiServerEventType = "ChatUnAssignment" )
type BaseApiServerEvent ¶
type BaseApiServerEvent struct {
EventType ApiServerEventType `json:"eventType"`
}
func (*BaseApiServerEvent) ToJson ¶
func (event *BaseApiServerEvent) ToJson() []byte
type ChatAssignmentEvent ¶
type ChatAssignmentEvent struct {
BaseApiServerEvent
ChatId string `json:"chatId"`
UserId string `json:"userId"`
}
type ChatUnAssignmentEvent ¶
type ChatUnAssignmentEvent struct {
BaseApiServerEvent
ChatId string `json:"chatId"`
UserId string `json:"userId"`
}
type NewMessageEvent ¶
type NewMessageEvent struct {
BaseApiServerEvent
Message string `json:"message"`
}
type NewNotificationEvent ¶
type NewNotificationEvent struct {
BaseApiServerEvent
Notification string `json:"notification"`
}
Click to show internal directories.
Click to hide internal directories.