socket

package
v0.0.0-...-8de5691 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChannel

func CreateChannel(event string, args MessageHandlerArgs) bool

func CreateDirect

func CreateDirect(event string, args MessageHandlerArgs) bool

func CreateGroup

func CreateGroup(event string, args MessageHandlerArgs) bool

func DeleteMessage

func DeleteMessage(_ string, args MessageHandlerArgs) bool

func GetChat

func GetChat(event string, args MessageHandlerArgs) bool

func InsertTextMessage

func InsertTextMessage(_ string, args MessageHandlerArgs) bool

func NewChatsHandler

func NewChatsHandler(args MessageHandlerArgs) bool

func NewMessagesHandler

func NewMessagesHandler(args MessageHandlerArgs) bool

Types

type Message

type Message struct {
	Event string                 `json:"event"`
	Data  map[string]interface{} `json:"data"`
}

type MessageHandlerArgs

type MessageHandlerArgs struct {
	// contains filtered or unexported fields
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewSocketService

func NewSocketService(app *gin.Engine, userService user.UserService, chatService chat.ChatService, messageService message.MessageService) *Service

Jump to

Keyboard shortcuts

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