Ai
1 Star 0 Fork 2

安易科技(北京)有限公司/chameleon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
grpc.go 570 Bytes
一键复制 编辑 原始数据 按行查看 历史
Derek Ray 提交于 2025-01-08 10:41 +08:00 . feat(plugin): add plugin system implementation
package messenger
import (
"context"
"gitee.com/anesec/chameleon/apis"
)
func newGRPC(options *messengerOptions) (Messenger, error) {
return &grpc{}, nil
}
type grpc struct {
endpoint string
pluginEndpoint string
}
func (msgr *grpc) Name() string {
return GRPC
}
func (msgr *grpc) Messages(ctx context.Context, options ...FetchOption) (<-chan *apis.Message, <-chan error) {
return nil, nil
}
func (msgr *grpc) Write(ctx context.Context, msg *apis.Message, options ...WriteOption) error {
return nil
}
func (msgr *grpc) Close() error {
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/anesec/chameleon.git
git@gitee.com:anesec/chameleon.git
anesec
chameleon
chameleon
205da4a0ed50

搜索帮助