ftail

package
v0.0.0-...-d8f2f85 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NopCloser

func NopCloser(w io.Writer) io.WriteCloser

NopCloser returns a ReadCloser with a no-op Close method wrapping the provided Reader r.

func Start

func Start(ctx context.Context, c Config, workerLimit chan bool) error

Types

type Config

type Config struct {
	Name            string
	BufDir          string
	Period          time.Duration // 分割保存インターバル
	MaxHeadHashSize int64
	MaxBufSize      int

	tailex.Config
}

type Ftail

type Ftail struct {
	Pos *core.Position
	Config

	Writer io.WriteCloser
	// contains filtered or unexported fields
}

func (*Ftail) Flush

func (f *Ftail) Flush() error

func (*Ftail) Write

func (f *Ftail) Write(line *tail.Line) (err error)

Jump to

Keyboard shortcuts

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