Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is for pessimistic transaction test
func (*Client) Initialize ¶
Initialize ...
func (*Client) NewSession ¶
NewSession ...
type ClientConfig ¶
type ClientConfig struct { DBName string `toml:"dbname"` Concurrency int `toml:"concurrency"` TableNum int `toml:"table_num"` TableSize uint64 `toml:"table_size"` OperationCount uint64 `toml:"operation_count"` Mode string `toml:"mode"` InsertDelete bool `toml:"insert_delete"` IgnoreCodesO []int `toml:"ignore_codes_o"` IgnoreCodesP []int `toml:"ignore_codes_p"` UsePrepareStmt bool `toml:"use_prepare_stmt"` }
ClientConfig is for pessimistic test case.
type ClientCreator ¶
type ClientCreator struct {
Cfg *Config
}
ClientCreator creates pessimisticClient
func (ClientCreator) Create ¶
func (l ClientCreator) Create(node cluster.ClientNode) core.Client
Create creates case client
type Config ¶
type Config struct { PessimisticClientConfig ClientConfig HongbaoClientConfig hongbao.ClientConfig }
Config is for pessimisticClient
Click to show internal directories.
Click to hide internal directories.