notify

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPCInfo

func IPCInfo(msg, deviceID, name string)

IPCInfo 向所有已连接的 WebSocket 客户端广播一条设备相关信息通知

func IPCWarn

func IPCWarn(msg, deviceID, name string)

IPCWarn 向所有已连接的 WebSocket 客户端广播一条设备相关警告通知

func SetIPCInfoFunc

func SetIPCInfoFunc(fn func(msg, deviceID, name string))

SetIPCInfoFunc 注册设备相关信息广播函数

func SetIPCWarnFunc

func SetIPCWarnFunc(fn func(msg, deviceID, name string))

SetIPCWarnFunc 注册设备相关警告广播函数

func SetWarnFunc

func SetWarnFunc(fn func(string))

SetWarnFunc 注册全局警告广播函数,在 WebSocket Hub 初始化后由 api 层调用

func Warn

func Warn(msg string)

Warn 向所有已连接的 WebSocket 客户端广播一条通用警告通知

Types

This section is empty.

Jump to

Keyboard shortcuts

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