Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) InsertMany ¶
func (c *Collection) InsertMany(ctx context.Context, documents []interface{}) error
type Conf ¶
type Conf struct { Path string // 文档存储路径 MaxSize uint64 // 单文件最大存储个数 (文件越小在并行查询下越快) MaxReadPool uint64 // 最大读取线程数 MaxWritePool uint64 // 写大写入编码线程 ( 采用顺序写入 理论能跑满当前磁盘性能) }
func NewDefaultConfig ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Collection ¶
func (d *Database) Collection(collection string) (*Collection, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.