logger

package
v0.0.0-...-3336bd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Directory string
	// contains filtered or unexported fields
}

func NewLog

func NewLog(dir string) (log *Log, err error)

func (*Log) Append

func (l *Log) Append(record *api.Record) (offset uint64, err error)

func (*Log) Close

func (l *Log) Close() error

func (*Log) Delete

func (l *Log) Delete() error

func (*Log) Read

func (l *Log) Read(offset uint64) (*api.Record, error)

func (*Log) Reader

func (l *Log) Reader() io.Reader

func (*Log) Reset

func (l *Log) Reset() error

func (*Log) Truncate

func (l *Log) Truncate(lowest uint64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL