liner

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneURLValues added in v0.2.1

func CloneURLValues(v url.Values) url.Values

CloneURLValues clones an url.Values

func DetectContentType added in v0.2.1

func DetectContentType(body string) string

DetectContentType detects content-type of body.

Types

type Post

type Post struct {
	Matches []string `pflag:"前置匹配(子串包含)"`
	PostURL string   `pflag:"POST URL"`

	Capture      string `pflag:"匹配正则(优先级比锚点高)"`
	CaptureGroup int    `pflag:"捕获组序号"`

	AnchorStart string `pflag:"起始锚点(在capture为空时有效)"`
	AnchorEnd   string `pflag:"终止锚点(在capture为空时有效)"`
	// 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