websocketHelper

package
v0.0.0-...-9b5f5b5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(namespace, room, event string, content string)

func InitMq

func InitMq()

func PubMsg

func PubMsg(data _domain.MqMsg)

func SendExecMsg

func SendExecMsg(msg string, log interface{}, category consts.WsMsgCategory, wsMsg *websocket.Message)

func SendExecResult

func SendExecResult(data interface{}, wsMsg *websocket.Message)

func SendExecStatus

func SendExecStatus(category consts.WsMsgCategory, wsMsg *websocket.Message)

func SendInitializeMsg

func SendInitializeMsg(data interface{}, wsMsg *websocket.Message)

func SendStatInfo

func SendStatInfo(data agentDomain.InterfaceStat, wsMsg *websocket.Message)

func SetConn

func SetConn(conn *neffos.Conn)

func SubMsg

func SubMsg()

Types

type PrefixedLogger

type PrefixedLogger struct {
	Prefix string
}

func (*PrefixedLogger) Log

func (s *PrefixedLogger) Log(msg string)

Jump to

Keyboard shortcuts

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