Documentation
¶
Index ¶
- Constants
- func AttachAccount(encrypted string) string
- func HandleDelete(c *fiber.Ctx, token conversations.ConversationToken, messageId string) error
- func HandleGet(c *fiber.Ctx, token conversations.ConversationToken, messageId string) error
- func HandleListAfter(c *fiber.Ctx, token conversations.ConversationToken, after uint64) error
- func HandleListBefore(c *fiber.Ctx, token conversations.ConversationToken, before uint64) error
- func HandleSend(c *fiber.Ctx, token conversations.ConversationToken, action MessageSendAction) error
- func MessageEvent(message conversations.Message) pipes.Event
- func SendNotStoredSystemMessage(conversation string, content string, attachments []string) error
- func SendSystemMessage(conversation string, content string, attachments []string) error
- type MessageSendAction
Constants ¶
View Source
const ConversationEdited = "conv.edited"
View Source
const ConversationKick = "conv.kicked"
View Source
const ConversationVersionUpdate = "conv.update"
Not stored system messages
View Source
const DeletedMessage = "msg.deleted"
View Source
const GroupMemberInvite = "group.member_invite"
View Source
const GroupMemberJoin = "group.member_join"
View Source
const GroupMemberKick = "group.member_kick"
View Source
const GroupMemberLeave = "group.member_leave"
View Source
const GroupNewAdmin = "group.new_admin"
Stored system messages
View Source
const GroupRankChange = "group.rank_change"
Variables ¶
This section is empty.
Functions ¶
func AttachAccount ¶
func HandleDelete ¶
func HandleDelete(c *fiber.Ctx, token conversations.ConversationToken, messageId string) error
Action: msg_delete
func HandleGet ¶
func HandleGet(c *fiber.Ctx, token conversations.ConversationToken, messageId string) error
Action: msg_get
func HandleListAfter ¶
func HandleListAfter(c *fiber.Ctx, token conversations.ConversationToken, after uint64) error
Action: msg_list_after
func HandleListBefore ¶
func HandleListBefore(c *fiber.Ctx, token conversations.ConversationToken, before uint64) error
Action: msg_list_before
func HandleSend ¶
func HandleSend(c *fiber.Ctx, token conversations.ConversationToken, action MessageSendAction) error
Action: msg_send
func MessageEvent ¶
func MessageEvent(message conversations.Message) pipes.Event
func SendNotStoredSystemMessage ¶
Send a system message that isn't stored in the database
Types ¶
type MessageSendAction ¶
Click to show internal directories.
Click to hide internal directories.