bank2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCreator

type ClientCreator struct {
	Cfg         *Config
	AsyncCommit bool
	OnePC       bool
}

ClientCreator ...

func (ClientCreator) Create

Create ...

type Config

type Config struct {
	// NumAccounts is total accounts
	NumAccounts   int           `toml:"num_accounts"`
	Interval      time.Duration `toml:"interval"`
	TableNum      int           `toml:"table_num"`
	Concurrency   int           `toml:"concurrency"`
	RetryLimit    int           `toml:"retry_limit"`
	EnableLongTxn bool          `toml:"enable_long_txn"`
	RunMode       string        `toml:"run_mode"` // useless?
	Contention    string        `toml:"contention"`
	Pessimistic   bool          `toml:"pessimistic"`
	MinLength     int           `toml:"min_length"`
	MaxLength     int           `toml:"max_length"`
	ReplicaRead   string
	DbName        string
}

Config ...

Jump to

Keyboard shortcuts

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