websocketHelper

package
v0.0.0-...-a97389e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 commDomain.MqMsg)

func SendExecMsg

func SendExecMsg(msg, isRunning string, category commConsts.WsMsgCategory, info iris.Map, wsMsg *websocket.Message)

func SendExecMsgIfNeed

func SendExecMsgIfNeed(msg, isRunning string, category commConsts.WsMsgCategory, info iris.Map, wsMsg *websocket.Message)

func SendOutputMsg

func SendOutputMsg(msg, isRunning string, info iris.Map, wsMsg *websocket.Message)

func SendOutputMsgIfNeed

func SendOutputMsgIfNeed(msg, isRunning string, info iris.Map, 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