Help us shape the future of Go! Take the 2026 Go Developer Survey

bolt

package
v0.57.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinator

type Coordinator struct {
	// contains filtered or unexported fields
}

Coordinator adapts bbolt commit generation into the Volume coordinator contract.

func NewCoordinator

func NewCoordinator(db *bdb.DB, inner *coord_inmem.Coordinator) *Coordinator

NewCoordinator builds a bbolt-backed coordinator.

func (*Coordinator) Capability

func (c *Coordinator) Capability(ctx context.Context, scope coord.Scope) (*coord.Capability, error)

Capability reports bbolt coordination support.

func (*Coordinator) Snapshot

func (c *Coordinator) Snapshot(ctx context.Context, scope coord.Scope) (*coord.Snapshot, error)

Snapshot returns the latest bbolt commit generation and coordinator root.

func (*Coordinator) TryAcquireWriteLease

func (c *Coordinator) TryAcquireWriteLease(ctx context.Context, scope coord.Scope) (coord.WriteLease, bool, error)

TryAcquireWriteLease attempts to acquire the logical bbolt write lease.

func (*Coordinator) WaitAcquireWriteLease

func (c *Coordinator) WaitAcquireWriteLease(ctx context.Context, scope coord.Scope) (coord.WriteLease, error)

WaitAcquireWriteLease waits until the logical bbolt write lease is available.

func (*Coordinator) Watch

func (c *Coordinator) Watch(ctx context.Context, scope coord.Scope, afterGeneration uint64) (coord.Watch, error)

Watch streams root/prefix lease events and bbolt commit-generation changes.

Jump to

Keyboard shortcuts

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