Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConnectTimeout = 500 * time.Millisecond ConnectRetryWait = 200 * time.Millisecond )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// Required args
DB *sql.DB `deep:"-"`
Data []StatementData
DoneChan chan *Client
RunLevel finch.RunLevel
Statements []*trx.Statement
Stats []*stats.Trx `deep:"-"`
// Optional, usually from stage config
DefaultDb string
IterExecGroup uint32
IterExecGroupPtr *uint32
IterClients uint32
IterClientsPtr *uint32
Iter uint
QPS <-chan bool
TPS <-chan bool
// Retrun value to DoneChane
Error Error
// contains filtered or unexported fields
}
Client executes SQL statements. Each client is created in workload.Allocator.Clients and run in Stage.Run. Client.Init must be called once before calling Client.Run once.
Click to show internal directories.
Click to hide internal directories.