Documentation
¶
Index ¶
- Constants
- func NewScript(name string, scale int) ([]string, error)
- func ScriptNames() []string
- type Agent
- type DB
- type MysqlConfig
- type NullDB
- func (db *NullDB) Close() error
- func (db *NullDB) Exec(query string, args ...interface{}) (sql.Result, error)
- func (db *NullDB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (db *NullDB) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (db *NullDB) QueryRow(query string, args ...interface{}) *sql.Row
- type Recorder
- type RecorderOpts
- type RecorderReport
- type Task
- type TaskOpts
Constants ¶
View Source
const ( ProgressReportPeriod = 1 NBranches = 1 NTellers = 10 NAccounts = 100000 InsertChunkSize = 50000 GeneratingDataConcurrency = 30 )
View Source
const (
RecordPeriod = 1 * time.Second
)
View Source
const (
ThrottleInterrupt = 1 * time.Millisecond
)
Variables ¶
This section is empty.
Functions ¶
func ScriptNames ¶
func ScriptNames() []string
Types ¶
type MysqlConfig ¶
type Recorder ¶
type Recorder struct { sync.Mutex RecorderOpts TaskOpts // contains filtered or unexported fields }
func (*Recorder) Report ¶
func (rec *Recorder) Report() (rr *RecorderReport)
type RecorderOpts ¶
type RecorderReport ¶
type Task ¶
type Task struct { *TaskOpts // contains filtered or unexported fields }
func (*Task) Initialize ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.