Categorygithub.com/gochore/boltutil
modulepackage
0.2.0
Repository: https://github.com/gochore/boltutil.git
Documentation: pkg.go.dev

# README

boltutil

GitHub Actions codecov Go Report Card GitHub go.mod Go version GitHub tag (latest by date)

Boltutil implements some utility tools for bolt database.

# Functions

No description provided by the author
No description provided by the author
Open creates and opens a database with given options.
WithDefaultCoder return Option with specified DefaultCoder.
WithFileMode return Option with specified FileMode.
WithFreelistType return Option with specified FreelistType.
WithInitialMmapSize return Option with specified InitialMmapSize.
WithMmapFlags return Option with specified MmapFlags.
WithNoFreelistSync return Option with specified NoFreelistSync.
WithNoGrowSync return Option with specified NoGrowSync.
WithNoSync return Option with specified NoSync.
WithOpenFile return Option with specified OpenFile,.
WithPageSize return Option with specified PageSize.
WithReadOnly return Option with specified ReadOnly.
WithTimeout return Option with specified Timeout.
Wrap return a DB with then given bbolt.DB.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
GobCoder implements Coder with gob.
JsonCoder implements Coder with json.
XmlCoder implements Coder with xml.

# Interfaces

Coder is the interface that can encode and decode data.
HasBeforePut is the interface that indicates the BeforePut method.
HasBucket is the interface that indicates the bound bucket.
HasCoder is the interface that indicates the Coder of the type.
Storable is the interface that can be stored into bolt.

# Type aliases

Option represents the options that can be set when opening a database.