Documentation ¶
Overview ¶
Package blockfile provides methods for reading packets from blockfiles generated by stenotype.
Index ¶
- type BlockFile
- func (b *BlockFile) AllPackets() *base.PacketChan
- func (b *BlockFile) Close() (err error)
- func (b *BlockFile) DumpIndex(out io.Writer, start, finish []byte)
- func (b *BlockFile) Lookup(ctx context.Context, q query.Query, out *base.PacketChan)
- func (b *BlockFile) Name() string
- func (b *BlockFile) Positions(ctx context.Context, q query.Query) (base.Positions, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockFile ¶
type BlockFile struct {
// contains filtered or unexported fields
}
BlockFile provides an interface to a single stenotype file on disk and its associated index.
func NewBlockFile ¶
NewBlockFile opens up a named block file (and its index), returning a handle which can be used to look up packets.
func (*BlockFile) AllPackets ¶
func (b *BlockFile) AllPackets() *base.PacketChan
AllPackets returns a packet channel to which all packets in the blockfile are sent.
func (*BlockFile) DumpIndex ¶
DumpIndex dumps out a "human-readable" debug version of the blockfile's index to the given writer.
func (*BlockFile) Lookup ¶
Lookup returns all packets in the blockfile matched by the passed-in query.
Click to show internal directories.
Click to hide internal directories.