disk

package
v0.0.0-...-6120cfb Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAGE_SIZE = 4096
)

Variables

View Source
var (
	DefaultOptions = Options{Flag: os.O_RDWR | os.O_CREATE, Perm: 0755}
)
View Source
var (
	ErrIOReadExceedFileSize = errors.New("I/O error: reading exceed file size")
)

Functions

This section is empty.

Types

type BasicManager

type BasicManager interface {
	Open(filename string, opts ...Option) error
	ShutDown() error
	WritePage(pageId uint64, p unsafe.Pointer) error
	ReadPage(pageId uint64, p unsafe.Pointer) error
}

BasicManager Reads pages from disk, Writes pages to disk. Max Mapping Size: ( 2^64 - 1 ) * 4KB (Page Size)

type Option

type Option func(*Options) error

type Options

type Options struct {
	Flag int
	Perm os.FileMode
}

func (Options) Clone

func (opts Options) Clone() Options

Clone for write-on-copy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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