1 Star 0 Fork 0

zhangjungang/beats

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
internal_api.go 642 Bytes
Copy Edit Raw Blame History
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 {
ack *ackChan
buf []publisher.Event
}
type batchAckMsg struct{}
type batchCancelRequest struct{ ack *ackChan }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangjungang/beats.git
git@gitee.com:zhangjungang/beats.git
zhangjungang
beats
beats
v6.0.0

Search