Documentation ¶
Index ¶
- type LogEntry
- type LogError
- type LogFile
- func (l *LogFile) Close() error
- func (l *LogFile) Compact(newStartIndex uint64) error
- func (l *LogFile) FirstEntry() (*LogEntry, error)
- func (l *LogFile) FirstIndex() uint64
- func (l *LogFile) Flush() error
- func (l *LogFile) Iter(start, end uint64) (*LogIterator, error)
- func (l *LogFile) LastIndex() uint64
- func (l *LogFile) Restart(startingIndex uint64) error
- func (l *LogFile) Seek(toIndex uint64) (*LogEntry, error)
- func (l *LogFile) Write(entry []byte) error
- type LogIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogFile ¶
type LogFile struct {
// contains filtered or unexported fields
}
func (*LogFile) FirstEntry ¶
func (*LogFile) FirstIndex ¶
type LogIterator ¶
type LogIterator struct {
// contains filtered or unexported fields
}
func (*LogIterator) Entry ¶
func (i *LogIterator) Entry() *LogEntry
func (*LogIterator) Next ¶
func (i *LogIterator) Next() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.