messageengine

package
Version: v0.0.0-...-1a912f8 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectActionsToDB

func ConnectActionsToDB()

ConnectActionsToDB - Bind callbacks

func ConnectionHandler

func ConnectionHandler(ws *websocket.Conn)

ConnectionHandler - handles new WS connection

func GetOnlineUsersFromSlice

func GetOnlineUsersFromSlice(userIDs *[]int64) int64

GetOnlineUsersFromSlice - return count online users in usersID slice

func SendForceMessage

func SendForceMessage(msg models.ForceMsgToUser)

SendForceMessage - send force message

func SendMessage

func SendMessage(msg models.NewMessageToUser)

SendMessage - send message

func StartCoreMessenger

func StartCoreMessenger()

StartCoreMessenger - starting message engine

Types

type SystemMessage

type SystemMessage struct {
	Action  string
	Payload string
}

Jump to

Keyboard shortcuts

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