liner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Matches []string // 前置匹配(子串包含)
	PostURL string   // POST url

	Capture      string // 匹配正则,优先级高
	CaptureGroup int    // 捕获组序号

	// 在Capture为空时,使用锚点定位
	AnchorStart string // 起始锚点
	AnchorEnd   string // 终止锚点
	// contains filtered or unexported fields
}

Post process line and then POST it out

func (Post) ProcessLine

func (p Post) ProcessLine(tailer *tail.Tail, line string, firstLine bool) error

ProcessLine process a line string.

func (*Post) Setup

func (p *Post) Setup() error

Setup setup the Post p.

Jump to

Keyboard shortcuts

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