Documentation ¶
Index ¶
- Constants
- func NewCacheFile(cachePath string) (*cacheFile, error)
- func ReadLine(reader *bufio.Reader) ([]byte, error)
- type CachedConverter
- func (cache *CachedConverter) Close() error
- func (cache *CachedConverter) Contains(streamID uint64) bool
- func (cache *CachedConverter) Data(stream *index.Stream, moreDetails bool) (data []index.Data, clientBytes, serverBytes uint64, err error)
- func (cache *CachedConverter) DataForSearch(streamID uint64) ([2][]byte, [][2]int, uint64, uint64, bool, error)
- func (cache *CachedConverter) InvalidateChangedStreams(streams *bitmask.LongBitmask) bitmask.LongBitmask
- func (cache *CachedConverter) MaxProcessCount() int
- func (cache *CachedConverter) Name() string
- func (cache *CachedConverter) Reset() error
- func (cache *CachedConverter) Statistics() *Statistics
- func (cache *CachedConverter) Stderr(pid int) *ProcessStderr
- type Converter
- func (converter *Converter) Data(stream *index.Stream, moreDetails bool) (data []index.Data, clientBytes, serverBytes uint64, err error)
- func (converter *Converter) MaxProcessCount() int
- func (converter *Converter) Name() string
- func (converter *Converter) ProcessStats() []ProcessStats
- func (converter *Converter) Reset()
- func (converter *Converter) Stderr(pid int) *ProcessStderr
- type Process
- type ProcessStats
- type ProcessStderr
- type Statistics
Constants ¶
View Source
const (
MAX_PROCESS_COUNT = 8
)
View Source
const (
// Number of lines to keep in the stderr buffer.
STDERR_RING_SIZE = 512
)
Variables ¶
This section is empty.
Functions ¶
func NewCacheFile ¶
Types ¶
type CachedConverter ¶
type CachedConverter struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(converterName, executablePath, indexCachePath string) (*CachedConverter, error)
func (*CachedConverter) Close ¶
func (cache *CachedConverter) Close() error
func (*CachedConverter) Contains ¶
func (cache *CachedConverter) Contains(streamID uint64) bool
func (*CachedConverter) DataForSearch ¶
func (*CachedConverter) InvalidateChangedStreams ¶
func (cache *CachedConverter) InvalidateChangedStreams(streams *bitmask.LongBitmask) bitmask.LongBitmask
func (*CachedConverter) MaxProcessCount ¶
func (cache *CachedConverter) MaxProcessCount() int
func (*CachedConverter) Name ¶
func (cache *CachedConverter) Name() string
func (*CachedConverter) Reset ¶
func (cache *CachedConverter) Reset() error
func (*CachedConverter) Statistics ¶
func (cache *CachedConverter) Statistics() *Statistics
func (*CachedConverter) Stderr ¶
func (cache *CachedConverter) Stderr(pid int) *ProcessStderr
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func (*Converter) MaxProcessCount ¶
func (*Converter) ProcessStats ¶
func (converter *Converter) ProcessStats() []ProcessStats
func (*Converter) Stderr ¶
func (converter *Converter) Stderr(pid int) *ProcessStderr
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
To stop the process, close the input channel. The output channel will be closed when the process exits.
type ProcessStderr ¶
type Statistics ¶
type Statistics struct { Name string CachedStreamCount uint64 Processes []ProcessStats }
Click to show internal directories.
Click to hide internal directories.