db

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Unlicense Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SaveDbFilePath string

Db文件保存路径

Functions

func Delete

func Delete(mark string, key string)

删除

func Insert

func Insert(mark string, key string, value interface{}) error

插入

func IsHas

func IsHas(mark string, key string) (bool, error)

是否包含

func Query

func Query(mark string, key string, value interface{}) interface{}

查询

func QueryMark

func QueryMark(mark string) map[string]string

读取mark的所有数据

func Start

func Start()

func Stop

func Stop()

Types

type DbStart

type DbStart struct {
	SavePath string `autoInjectCfg:"octopus.db.save.path"`
}

Db启动方法

func (*DbStart) Start

func (d *DbStart) Start()

func (*DbStart) Stop

func (d *DbStart) Stop()

type DbStop

type DbStop struct {
}

Db停止方法

Jump to

Keyboard shortcuts

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