Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirWriter ¶
type DirWriter struct {
// SplitAtBytes indicates when to split (actual split point might be after it)
SplitAtBytes int
// Basedir used to store files
Basedir string
// NewBasename returns the name of the next chunk based on the given time
NewBasename func(time.Time) string
// contains filtered or unexported fields
}
DirWriter splits files in sequential chunks
Each chunk uses compression to reduce the disk footprint
type PacketVisitor ¶
type Stream ¶
type Stream struct {
// Glob pattern to select files from a directory
Glob string
}
Stream all tweets available on a given directory (see multi-writer)
func (*Stream) Stream ¶
func (s *Stream) Stream(visitor PacketVisitor) error
type TweetBatch ¶
Click to show internal directories.
Click to hide internal directories.