mbolt

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

mbolt

Description

多个 boltdb 当成一个 boltdb 来使用

低成本的大数据分析技术, 项目没有过多的预算, 无法使用大数据技术, 但是传统的方式也无法使用, 通过改造现有的技术来完成

Software Architecture

Software architecture description

Installation
  1. xxxx
  2. xxxx
  3. xxxx
Instructions
  1. xxxx
  2. xxxx
  3. xxxx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MBolt

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

func NewMBolt

func NewMBolt(dbNamePrefix, dbDir string, maxDBSize int) *MBolt

func (*MBolt) Read

func (mb *MBolt) Read(outCh chan []byte)

func (*MBolt) SetDBNames

func (mb *MBolt) SetDBNames(names []string)

func (*MBolt) SetRoutineCount

func (mb *MBolt) SetRoutineCount(cnt int)

func (*MBolt) Write

func (mb *MBolt) Write(inCh chan []byte)

type MBoltConfig

type MBoltConfig struct {
	DBNamePrefix  string // 数据库名称前缀
	DBDir         string // 数据库文件夹
	MaxDBSize     int    // 每个数据库数据量上限
	MaxBucketSize int    // 每个存储桶的数据量大小

	DBNames      []string // 数据库名称列表
	RoutineCount int      // 读取数据的 协程 个数
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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