tail

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

* Copyright (c) 2016 Yanko Bolanos * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. *

Index

Constants

View Source
const (
	SLEEP_TIMEOUT = time.Second * 1
	FD_TIMEOUT    = time.Minute * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tail

type Tail struct {
	Filename      string
	LineChan      chan string
	Cancel        context.CancelFunc
	Follow        bool
	Context       context.Context
	RetryFileOpen bool // keep trying to re-open the file, helpful when the file doesn't exist yet

	SeekToEnd bool
	// contains filtered or unexported fields
}

func NewTail

func NewTail(path string) *Tail

func NewTailWithCtx

func NewTailWithCtx(ctx context.Context, path string, follow, retryFileOpen bool, delim *regexp.Regexp, lineStartSplit bool) *Tail

func (*Tail) Close

func (t *Tail) Close()

func (*Tail) Start

func (t *Tail) Start()

Directories

Path Synopsis
* Copyright (c) 2016 Yanko Bolanos * * This Source Code Form is subject to the terms of the Mozilla Public * License, v.
* Copyright (c) 2016 Yanko Bolanos * * This Source Code Form is subject to the terms of the Mozilla Public * License, v.

Jump to

Keyboard shortcuts

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