message_routes

package
v0.0.0-...-bf66d8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ConversationKick = "conv.kicked"

Message not stored, but sent to just disconnect one person

View Source
const DeletedMessage = "msg.deleted"

System messages

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"
View Source
const GroupRankChange = "group.rank_change"

Variables

This section is empty.

Functions

func AttachAccount

func AttachAccount(encrypted string) string

func MessageEvent

func MessageEvent(message conversations.Message) pipes.Event

func SendNotStoredSystemMessage

func SendNotStoredSystemMessage(conversation string, content string, attachments []string) error

func SendSystemMessage

func SendSystemMessage(conversation string, content string, attachments []string) error

func SetupRoutes

func SetupRoutes(router fiber.Router)

Types

type MessageSendRequest

type MessageSendRequest struct {
	Conversation string `json:"conversation"`
	TokenID      string `json:"token_id"`
	Token        string `json:"token"`
	Timestamp    uint64 `json:"timestamp"`
	Data         string `json:"data"`
}

func (*MessageSendRequest) Validate

func (r *MessageSendRequest) Validate() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL