Documentation ¶
Index ¶
- Constants
- Variables
- func GetRootPage(path string) (root Pgid, activeMeta Pgid, err error)
- func WritePage(path string, pageBuf []byte) error
- type BranchPageElement
- type Bucket
- type LeafPageElement
- type Meta
- type Page
- func (p *Page) BranchPageElement(index uint16) *BranchPageElement
- func (p *Page) Count() uint16
- func (p *Page) FreelistPageCount() int
- func (p *Page) FreelistPagePages() []Pgid
- func (p *Page) Id() Pgid
- func (p *Page) LeafPageElement(index uint16) *LeafPageElement
- func (p *Page) Overflow() uint32
- func (p *Page) SetCount(target uint16)
- func (p *Page) SetId(target Pgid)
- func (p *Page) SetOverflow(target uint32)
- func (p *Page) String() string
- func (p *Page) Type() string
- type Pgid
Constants ¶
View Source
const PageHeaderSize = 16
PageHeaderSize represents the size of the bolt.Page header.
Variables ¶
View Source
var ( // ErrCorrupt is returned when a checking a data file finds errors. ErrCorrupt = errors.New("invalid value") )
Functions ¶
func GetRootPage ¶
GetRootPage returns the root-page (according to the most recent transaction).
Types ¶
type BranchPageElement ¶
type BranchPageElement struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func (*BranchPageElement) Key ¶
func (n *BranchPageElement) Key() []byte
DO NOT EDIT. Copied from the "bolt" package.
func (*BranchPageElement) PgId ¶
func (n *BranchPageElement) PgId() Pgid
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func LoadBucket ¶
func (*Bucket) InlinePage ¶
type LeafPageElement ¶
type LeafPageElement struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func (*LeafPageElement) Bucket ¶
func (n *LeafPageElement) Bucket() *Bucket
func (*LeafPageElement) IsBucketEntry ¶
func (n *LeafPageElement) IsBucketEntry() bool
func (*LeafPageElement) Key ¶
func (n *LeafPageElement) Key() []byte
DO NOT EDIT. Copied from the "bolt" package.
func (*LeafPageElement) Value ¶
func (n *LeafPageElement) Value() []byte
DO NOT EDIT. Copied from the "bolt" package.
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func LoadPageMeta ¶
func (*Meta) RootBucket ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func ReadPage ¶
ReadPage reads Page info & full Page data from a path. This is not transactionally safe.
func (*Page) BranchPageElement ¶
func (p *Page) BranchPageElement(index uint16) *BranchPageElement
DO NOT EDIT. Copied from the "bolt" package.
func (*Page) FreelistPageCount ¶
func (*Page) FreelistPagePages ¶
func (*Page) LeafPageElement ¶
func (p *Page) LeafPageElement(index uint16) *LeafPageElement
DO NOT EDIT. Copied from the "bolt" package.
func (*Page) SetOverflow ¶
Click to show internal directories.
Click to hide internal directories.