E2E测试——如何编写Subscriber插件
Subscriber接口定义
type Subscriber interface {
doc.Doc
// Name returns the name of the subscriber
Name() string
// Start starts the subscriber
Start() error
// Stop stops the subscriber
Stop()
// SubscribeChan returns the channel used to transmit received data to validator
SubscribeChan() <-chan *protocol.LogGroup
// FlusherConfig returns the default flusher config for LoongCollector container correspoding to this subscriber
FlusherConfig() string
}Subscriber开发流程
Last updated