Ai
1 Star 0 Fork 0

monobytes/gcore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
provider.go 450 Bytes
一键复制 编辑 原始数据 按行查看 历史
null 提交于 2025-01-22 18:29 +08:00 . first commit
package node
import (
"context"
"gitee.com/monobytes/gcore/gcluster"
)
type Provider interface {
// Trigger 触发事件
Trigger(ctx context.Context, gid string, cid, uid int64, event gcluster.Event) error
// Deliver 投递消息
Deliver(ctx context.Context, gid, nid string, cid, uid int64, message []byte) error
// GetState 获取状态
GetState() (gcluster.State, error)
// SetState 设置状态
SetState(state gcluster.State) error
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/monobytes/gcore.git
git@gitee.com:monobytes/gcore.git
monobytes
gcore
gcore
v0.0.17

搜索帮助