liner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 8 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 {
	PostURL string `pflag:"POST URL"`

	capture.Config
	// 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