Documentation
¶
Index ¶
- type ControlBar
- type ExtMessage
- type FileEntry
- type ITail
- type MultiTail
- type Option
- type Pattern
- type Plugin
- type Tail
- type TailConfig
- type WebTail
- type WebTailSession
- func (wts *WebTailSession) Close() error
- func (wts *WebTailSession) Control(data []byte) error
- func (wts *WebTailSession) Open() error
- func (wts *WebTailSession) Read(p []byte) (n int, err error)
- func (wts *WebTailSession) SetFilter(filter string)
- func (wts *WebTailSession) SetWinSize(cols, rows int) error
- func (wts *WebTailSession) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlBar ¶
type ExtMessage ¶
type ITail ¶
func NewMultiTail ¶
type MultiTail ¶
type MultiTail struct {
// contains filtered or unexported fields
}
MultiTail allows tailing multiple files and merging their output
type Option ¶
type Option func(*Tail)
Option is a functional option for Tail
func WithBufferSize ¶
func WithPattern ¶
func WithPlugins ¶
func WithPollInterval ¶
WithPollInterval sets the polling interval for checking file changes
func WithSyntaxHighlighting ¶
type Plugin ¶
type Plugin interface {
// Apply processes a line and returns the modified line
// and a boolean indicating processing ahead
// if further plugins should continue processing
// or drop the line.
Apply(line string) (string, bool)
}
type Tail ¶
type Tail struct {
// contains filtered or unexported fields
}
Tail provides functionality to tail a file it works similar to 'tail -F' command in unix, which follows the file even if it is rotated
type TailConfig ¶
type WebTail ¶
type WebTail struct {
Tails []TailConfig
}
type WebTailSession ¶
type WebTailSession struct {
// contains filtered or unexported fields
}
func (*WebTailSession) Close ¶
func (wts *WebTailSession) Close() error
func (*WebTailSession) Control ¶
func (wts *WebTailSession) Control(data []byte) error
func (*WebTailSession) Open ¶
func (wts *WebTailSession) Open() error
func (*WebTailSession) SetFilter ¶
func (wts *WebTailSession) SetFilter(filter string)
func (*WebTailSession) SetWinSize ¶
func (wts *WebTailSession) SetWinSize(cols, rows int) error
Click to show internal directories.
Click to hide internal directories.