bitcask: github.com/prologic/bitcask/internal/data Index | Files | Directories

package data

import "github.com/prologic/bitcask/internal/data"

Index

Package Files

datafile.go

type Datafile Uses

type Datafile interface {
    FileID() int
    Name() string
    Close() error
    Sync() error
    Size() int64
    Read() (internal.Entry, int64, error)
    ReadAt(index, size int64) (internal.Entry, error)
    Write(internal.Entry) (int64, int64, error)
}

Datafile is an interface that represents a readable and writeable datafile

func NewDatafile Uses

func NewDatafile(path string, id int, readonly bool, maxKeySize uint32, maxValueSize uint64) (Datafile, error)

NewDatafile opens an existing datafile

Directories

PathSynopsis
codec

Package data imports 8 packages (graph) and is imported by 1 packages. Updated 2019-10-24. Refresh now. Tools for package owners.