1 Star 0 Fork 0

sqos/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
internal_api.go 646 Bytes
一键复制 编辑 原始数据 按行查看 历史
Steffen Siering 提交于 2017-08-24 20:50 . Pipeline cleanups (#4776) (#5002)
package memqueue
import "github.com/elastic/beats/libbeat/publisher"
// producer -> broker API
type pushRequest struct {
event publisher.Event
seq uint32
state *produceState
}
type producerCancelRequest struct {
state *produceState
resp chan producerCancelResponse
}
type producerCancelResponse struct {
removed int
}
// consumer -> broker API
type getRequest struct {
sz int // request sz events from the broker
resp chan getResponse // channel to send response to
}
type getResponse struct {
buf []publisher.Event
ack *ackChan
}
type batchAckRequest struct{}
type batchCancelRequest struct{ ack *ackChan }
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v6.0.0-beta2

搜索帮助

0d507c66 1850385 C8b1a773 1850385