Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCreatingDatabase 创建数据库错误 ErrCreatingDatabase = errors.New(`error while creating Database`) // ErrDataStoreNotFound 没有找到数据记录 ErrDataStoreNotFound = errors.New(`the requested data store was not found`) )
Functions ¶
This section is empty.
Types ¶
type HashDatabase ¶
type HashDatabase struct {
// contains filtered or unexported fields
}
HashDatabase 数据库
func (*HashDatabase) Insert ¶
func (db *HashDatabase) Insert(key uint32, value interface{}) uint32
Insert 插入数据
func (*HashDatabase) Update ¶
func (db *HashDatabase) Update(key uint32, fn func(interface{}) interface{})
Update 更新数据
Click to show internal directories.
Click to hide internal directories.