Documentation ¶
Index ¶
Constants ¶
View Source
const (
RETRY_COUNT = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogClient ¶
type LogClient struct { sync.Mutex // 用来控制 seq 计数, 只有 reportLog 和 gotWriteEvent 日志入队时存在并发问题 *fsnotify.Watcher // contains filtered or unexported fields }
func NewLogClient ¶
func NewLogClient(conf *config.CollectorConfig, stopCh <-chan struct{}) (*LogClient, error)
NewLogClient TODO 支持动态获取 serverAddr
当前直接从配置中读取
type LogReportRequest ¶
Click to show internal directories.
Click to hide internal directories.