Documentation ¶
Index ¶
- Constants
- type Client
- func (t *Client) Delete(ctx context.Context, key string, names ...string) error
- func (t *Client) Get(ctx context.Context, key string, names ...string) result.Result[[]byte]
- func (t *Client) List(ctx context.Context, fn func(k, v []byte) error, names ...string) error
- func (t *Client) Set(ctx context.Context, key string, val []byte, names ...string) error
- func (t *Client) Update(ctx context.Context, fn func(*bolt.Bucket) error, names ...string) error
- func (t *Client) View(ctx context.Context, fn func(*bolt.Bucket) error, names ...string) error
- type Config
Constants ¶
View Source
const Name = "bolt"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Config ¶
type Config struct { FileMode fs.FileMode `json:"file_mode"` Timeout time.Duration `json:"timeout"` NoGrowSync bool `json:"no_grow_sync"` NoFreelistSync bool `json:"no_freelist_sync"` FreelistType bolt.FreelistType `json:"freelist_type"` ReadOnly bool `json:"read_only"` MmapFlags int `json:"mmap_flags"` InitialMmapSize int `json:"initial_mmap_size"` PageSize int `json:"page_size"` NoSync bool `json:"no_sync"` Path string `json:"path"` }
func DefaultConfig ¶
func DefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.