qq

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QQChannel

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

func New

func New() *QQChannel

func (*QQChannel) Close

func (q *QQChannel) Close(_ context.Context) error

func (*QQChannel) HandleRawEvent

func (q *QQChannel) HandleRawEvent(payload []byte) error

func (*QQChannel) Healthy

func (q *QQChannel) Healthy() bool

func (*QQChannel) Init

func (q *QQChannel) Init(ctx context.Context, conf *models.NotificationConf) error

func (*QQChannel) LinkState added in v0.48.0

func (q *QQChannel) LinkState() string

* LinkState 实现 notify.LinkStater —— QQ 是这几个适配器里唯一能判断「对端真的接上了」的: * NapCat 握手成功时 wsHandshakeHandler 会存下 caller,发送也正是靠它。 * * Healthy() 不够用:它在监听端口一绑上就翻成 true,那时候发送会返回 * 「QQ 通道未连接 (NapCat 尚未握手)」—— 界面若照 Healthy() 写「已连接」就是在说假话。

func (*QQChannel) OnInbound

func (q *QQChannel) OnInbound(handler notify.InboundHandler)

func (*QQChannel) Send

func (*QQChannel) SupportsInbound

func (q *QQChannel) SupportsInbound() bool

func (*QQChannel) Type

func (q *QQChannel) Type() string

Jump to

Keyboard shortcuts

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