Documentation ¶
Index ¶
- Constants
- Variables
- type LogBuffer
- func (m *LogBuffer) AddToBuffer(partitionKey, data []byte, processingTsNs int64)
- func (logBuffer *LogBuffer) LoopProcessLogData(readerName string, startReadTime time.Time, stopTsNs int64, ...) (lastReadTime time.Time, isDone bool, err error)
- func (m *LogBuffer) ReadFromBuffer(lastReadTime time.Time) (bufferCopy *bytes.Buffer, err error)
- func (m *LogBuffer) ReleaseMemory(b *bytes.Buffer)
- func (m *LogBuffer) Shutdown()
- type MemBuffer
- type SealedBuffers
Constants ¶
View Source
const BufferSize = 4 * 1024 * 1024
View Source
const PreviousBufferCount = 3
Variables ¶
View Source
var ( ResumeError = fmt.Errorf("resume") ResumeFromDiskError = fmt.Errorf("resumeFromDisk") )
Functions ¶
This section is empty.
Types ¶
type LogBuffer ¶
func NewLogBuffer ¶
func (*LogBuffer) AddToBuffer ¶
func (*LogBuffer) LoopProcessLogData ¶
func (*LogBuffer) ReadFromBuffer ¶
func (*LogBuffer) ReleaseMemory ¶
type SealedBuffers ¶
type SealedBuffers struct {
// contains filtered or unexported fields
}
func (*SealedBuffers) SealBuffer ¶
Click to show internal directories.
Click to hide internal directories.