task

package
v0.0.0-...-1c34454 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogContent

type LogContent struct {
	AppId   string
	Content string
}

LogContent 日志消息体

type TailTask

type TailTask struct {
	AppId     string
	LogPath   string
	Multiline *config.Multiline
	// contains filtered or unexported fields
}

TailTask Tail 任务

func NewTailTask

func NewTailTask(source *config.LogFileSource, msgChan chan<- *LogContent) (*TailTask, error)

func (*TailTask) Start

func (t *TailTask) Start()

Start 开始读取日志

func (*TailTask) Stop

func (t *TailTask) Stop()

Stop 停止读取日志

Jump to

Keyboard shortcuts

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