sharding

package
v0.0.0-...-57b48e0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: GPL-3.0, LGPL-3.0, LGPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FDBPartitionsPool []*FDBWorker = make([]*FDBWorker, 256)

Functions

func ReadTransact

func ReadTransact(shardingKey []byte, tx func(tr fdb.ReadTransaction) (interface{}, error)) (interface{}, error)

func Transact

func Transact(shardingKey []byte, tx func(tr fdb.Transaction) (interface{}, error)) (interface{}, error)

Types

type FDBWorker

type FDBWorker struct {
	Concurrency int
	// contains filtered or unexported fields
}

func NewFDBWorker

func NewFDBWorker(clusterFileIndex uint64, concurrencyLimit int) *FDBWorker

func (*FDBWorker) ShardReadTransact

func (w *FDBWorker) ShardReadTransact(tx func(tr fdb.ReadTransaction) (interface{}, error)) (interface{}, error)

func (*FDBWorker) ShardTransact

func (w *FDBWorker) ShardTransact(tx func(tr fdb.Transaction) (interface{}, error)) (interface{}, error)

Jump to

Keyboard shortcuts

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