Documentation ¶ Index ¶ Constants Variables type Log func Open(name string, opt *Options) (*Log, error) func (l *Log) Close() error func (l *Log) Read(index uint64) ([]byte, error) func (l *Log) Write(index uint64, data []byte) error type Options func DefaultOptions() *Options Constants ¶ View Source const ValueFixedLength = 64 Variables ¶ View Source var ( ErrNotFound = errors.New("not found") ErrValueTooLarge = errors.New("value too large") ) Functions ¶ This section is empty. Types ¶ type Log ¶ type Log struct { // contains filtered or unexported fields } func Open ¶ func Open(name string, opt *Options) (*Log, error) func (*Log) Close ¶ func (l *Log) Close() error func (*Log) Read ¶ func (l *Log) Read(index uint64) ([]byte, error) func (*Log) Write ¶ func (l *Log) Write(index uint64, data []byte) error type Options ¶ type Options struct { NoSync bool NoCopy bool } func DefaultOptions ¶ func DefaultOptions() *Options Source Files ¶ View all Source files redo.go Click to show internal directories. Click to hide internal directories.