Documentation ¶
Overview ¶
* @Author: soso * @Date: 2022-02-18 17:15:45 * @LastEditTime: 2022-02-18 17:17:01 * @LastEditors: Please set LastEditors * @Description: 索引数据块 * @FilePath: /go-utils/blockfile/index.go
Index ¶
- type Blockfile
- func (bf *Blockfile) Add(data []byte) (key int, err error)
- func (bf *Blockfile) Adds(datas [][]byte) (keys []int, err error)
- func (bf *Blockfile) Clean() (err error)
- func (bf *Blockfile) Get(key int) (out []byte, err error)
- func (bf *Blockfile) GetsFrom(keyFrom int) (out []byte, err error)
- func (bf *Blockfile) Set(key int, data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockfile ¶
type Blockfile struct {
// contains filtered or unexported fields
}
func NewBlockfile ¶
func NewBlockfile() *Blockfile
Click to show internal directories.
Click to hide internal directories.