tail

package module
v0.0.0-...-2b4ad30 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2013 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PreviousEventsDir = "/tmp"
	EmptyAttribute    = "-"
)
View Source
const (
	CommandFindEvent     = "find_event.sh"
	CommandTailFromEvent = "tail_from_event.sh"
	CommandTailFromStart = "tail_from_start.sh"
	CommandTailFromEnd   = "tail_from_end.sh"
)

Variables

View Source
var (
	ScriptPath string

	LinesChannelSize     = 1024
	FilePath             = "logs/development.json.log"
	SavePreviousEventMod = 1000
)

Functions

This section is empty.

Types

type Event

type Event struct {
	Id string `json:"event_id"`
}

type Tailer

type Tailer struct {
	// contains filtered or unexported fields
}

func NewTailer

func NewTailer() *Tailer

func (*Tailer) Listen

func (t *Tailer) Listen() chan string

func (*Tailer) Read

func (t *Tailer) Read(filePath string, startEvent string, tm *tomb.Tomb) error

Jump to

Keyboard shortcuts

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