Documentation
¶
Overview ¶
Package filterbase provides utility tools to implement filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = struct { MaxLineLen int `yaml:"max_line_len"` }{ MaxLineLen: 1 * 1024 * 1024, }
View Source
var (
ErrMaxLineExceeded = errors.New("maximum line length is exceeded. this limit can be extended with config.filters._base_.max_line_len")
)
Functions ¶
This section is empty.
Types ¶
type Base ¶
Base is base of filters. It provides common features for filter.
func (*Base) Init ¶
func (b *Base) Init(r io.ReadCloser, readNext BaseReadNext)
Init initializes Base object.
type BaseReadNext ¶
BaseReadNext is callback to read next data hunk to buf
type LTSVReader ¶
type LTSVReader struct {
// contains filtered or unexported fields
}
func NewLTSVReader ¶
func NewLTSVReader(r io.Reader) *LTSVReader
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
func NewLineReader ¶
func NewLineReader(r io.Reader) *LineReader
func (*LineReader) ReadLine ¶
func (r *LineReader) ReadLine() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.