boltkv

package
v0.0.0-...-16f3fb8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Boltkv说明

boltkv是使用blotdb作为底层支撑的Goblet KV组件,支持key-value调用。

使用限制

boltkv只支撑单机使用,不具备多机同步能力

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackEnd

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

func (*BackEnd) AddCfgAndInit

func (b *BackEnd) AddCfgAndInit(server *goblet.Server) error

func (*BackEnd) Collection

func (b *BackEnd) Collection(name string) goblet.Kv

func (*BackEnd) DB

func (b *BackEnd) DB() *bolt.DB

type BackEndConfig

type BackEndConfig struct {
	File string `goblet:file`
}

type Collection

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

func (*Collection) Del

func (c *Collection) Del(name string) error

func (*Collection) Get

func (c *Collection) Get(name string, pointer interface{}) (err error)

func (*Collection) Keys

func (c *Collection) Keys() []string

func (*Collection) Set

func (c *Collection) Set(name string, pointer interface{}) error

Jump to

Keyboard shortcuts

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