Documentation ¶
Index ¶
- Constants
- Variables
- type LogBuffer
- func (m *LogBuffer) AddToBuffer(partitionKey, data []byte, eventTsNs int64)
- func (logBuffer *LogBuffer) LoopProcessLogData(startTreadTime time.Time, waitForDataFn func() bool, ...) (lastReadTime time.Time, err error)
- func (m *LogBuffer) ReadFromBuffer(lastReadTime time.Time) (bufferCopy *bytes.Buffer)
- 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")
)
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.