Documentation ¶
Index ¶
- Constants
- func Encode(e Entry) []byte
- func GetDataFiles(path string) ([]string, error)
- func GetFileID(filename string) (int64, error)
- type Bitcask
- type DataFile
- func (df *DataFile) Close() error
- func (df *DataFile) Delete() error
- func (df *DataFile) Read() (*Entry, error)
- func (df *DataFile) ReadValueAt(offset int64, size int32) ([]byte, error)
- func (df *DataFile) Writable(data []byte) bool
- func (df *DataFile) Write(key string, value []byte) (*EntryIndex, error)
- type Entry
- type EntryIndex
- type Header
- type KeyDir
Constants ¶
View Source
const (
HeaderSize = 4 + 8 + 4 + 4 // Header size in bytes. See the Header struct for more detail
)
View Source
const MaxFileSize int64 = 1024 * 1024 * 1024 // 1GB
Variables ¶
This section is empty.
Functions ¶
func GetDataFiles ¶
Types ¶
type DataFile ¶
func (*DataFile) ReadValueAt ¶
type EntryIndex ¶
type EntryIndex struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.