plug

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DingDingFatalHookAddr = "https://oapi.dingtalk.com/robot/send?access_token=d92402471615f696534f8eb2ca3d8f7d79e1b5393e5d091df777a9ac1cf213e5"

Variables

This section is empty.

Functions

func UploadFatalToDingHook

func UploadFatalToDingHook(msgbody string)

Types

type CmdBlacklist

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

CmdBlacklist 管理int32类型命令的黑名单,需要注意并发安全,无锁

func NewCmdBlacklist

func NewCmdBlacklist() *CmdBlacklist

func (*CmdBlacklist) GetAll

func (c *CmdBlacklist) GetAll() []uint32

GetAll 获取所有黑名单命令

func (*CmdBlacklist) IsBlocked

func (c *CmdBlacklist) IsBlocked(cmd uint32) bool

func (*CmdBlacklist) Register

func (c *CmdBlacklist) Register(cmd uint32)

func (*CmdBlacklist) Unregister

func (c *CmdBlacklist) Unregister(cmd uint32)

Jump to

Keyboard shortcuts

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