Documentation
¶
Index ¶
- type QQChannel
- func (q *QQChannel) Close(_ context.Context) error
- func (q *QQChannel) HandleRawEvent(payload []byte) error
- func (q *QQChannel) Healthy() bool
- func (q *QQChannel) Init(ctx context.Context, conf *models.NotificationConf) error
- func (q *QQChannel) LinkState() string
- func (q *QQChannel) OnInbound(handler notify.InboundHandler)
- func (q *QQChannel) Send(ctx context.Context, n notify.Notification) error
- func (q *QQChannel) SupportsInbound() bool
- func (q *QQChannel) Type() string
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 (*QQChannel) HandleRawEvent ¶
func (*QQChannel) LinkState ¶ added in v0.48.0
* LinkState 实现 notify.LinkStater —— QQ 是这几个适配器里唯一能判断「对端真的接上了」的: * NapCat 握手成功时 wsHandshakeHandler 会存下 caller,发送也正是靠它。 * * Healthy() 不够用:它在监听端口一绑上就翻成 true,那时候发送会返回 * 「QQ 通道未连接 (NapCat 尚未握手)」—— 界面若照 Healthy() 写「已连接」就是在说假话。
func (*QQChannel) OnInbound ¶
func (q *QQChannel) OnInbound(handler notify.InboundHandler)