connect

package
v0.0.0-...-7a6c0c8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	// SendEvent 发送事件
	SendEvent(e any, eId string, eType string) error
	// SendResponse 发送响应
	SendResponse(e any) error
	// AddBot 添加了一个Bot
	AddBot(impl string, version string, oneBotVersion string, self protocol.Self) error
	// AddBotRequestChan 添加了一个Bot的请求通道
	AddBotRequestChan(self protocol.Self, botRequestChan chan protocol.RawRequestType) error
	// GetVersion 返回连接的版本
	GetVersion() string
	// GetUUID 返回连接的UUID
	GetUUID() string
}

Connection connection接口 可自定义

Directories

Path Synopsis
v11

Jump to

Keyboard shortcuts

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