tailLog

package
v0.0.0-...-bff8ed8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tails *tail.Tail
)

Functions

func ExposeChan

func ExposeChan() chan<- []*etcd.LogEntries

向外暴露通道newConfChan

func Init

func Init(fileName string) (err error)

以下用不到

func NewTailMgr

func NewTailMgr(logConfList []*etcd.LogEntries)

func ReadChan

func ReadChan() <-chan *tail.Line

Types

type TailMgr

type TailMgr struct {
	// contains filtered or unexported fields
}

管理所有tails-->tailObj

type TailTask

type TailTask struct {
	// contains filtered or unexported fields
}

一个日志收集的任务

func NewTailTask

func NewTailTask(path, topic string) (tailObj *TailTask)

func (*TailTask) ReadChan

func (t *TailTask) ReadChan() <-chan *tail.Line

func (*TailTask) ReadSendMsg

func (t *TailTask) ReadSendMsg()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL