Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) OpenReader ¶
func (l *Log) OpenReader(options ...OpenReaderOption) (Reader, error)
func (*Log) OpenWriter ¶
func (l *Log) OpenWriter(options ...OpenWriterOption) (*Writer, error)
type OpenReaderOption ¶
type OpenReaderOption func(*ReaderSettings) error
func StartingFrom ¶
func StartingFrom(t time.Time) OpenReaderOption
type OpenWriterOption ¶
type OpenWriterOption func(*WriterSettings) error
func MaxSegmentDuration ¶
func MaxSegmentDuration(duration time.Duration) OpenWriterOption
func MaxSegmentSizeMB ¶
func MaxSegmentSizeMB(megabytes int) OpenWriterOption
func NowFunc ¶
func NowFunc(f func() time.Time) OpenWriterOption
type ReaderSettings ¶
type ReaderSettings struct {
// contains filtered or unexported fields
}
type WriterSettings ¶
type WriterSettings struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.