bank2

package module
v0.0.0-...-dfd9850 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 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
}

ClientCreator ...

func (ClientCreator) Create

Create ...

type Config

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

Config ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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