tail

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tail provides tail filter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTail

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

RTail implements reversed tail filter

func NewRTail

func NewRTail(r readSeekCloser, limit int, bufsize int) *RTail

NewRTail creates an instance of RTail. RTail is specialized Tail for io.Reader which have io.Seeker and Closer also.

func (*RTail) Close

func (rt *RTail) Close() error

Close closes a filter.

func (*RTail) Read

func (rt *RTail) Read(buf []byte) (int, error)

Read reads filtered data.

type Tail

type Tail struct {
	filter.Base
	// contains filtered or unexported fields
}

Tail is "tail" like filter.

func NewTail

func NewTail(r io.ReadCloser, limit int) *Tail

NewTail creates an instance of tail filter.

Jump to

Keyboard shortcuts

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