Documentation ¶
Index ¶
- Variables
- func GetRandomString(l int, cn int) string
- type Column
- type DataStruct
- type Event
- func (This *Event) CheckData(src map[string]interface{}, destJsonString string) (map[string][]string, error)
- func (This *Event) CheckData0(srcV interface{}, destV interface{}, key string, result map[string][]string)
- func (This *Event) CheckData2(src map[string]interface{}, destJsonString string) (map[string][]string, error)
- func (This *Event) GetDataMap() map[uint64]map[string]interface{}
- func (This *Event) GetTestDeleteData() *pluginDriver.PluginDataType
- func (This *Event) GetTestInsertData() *pluginDriver.PluginDataType
- func (This *Event) GetTestQueryData() *pluginDriver.PluginDataType
- func (This *Event) GetTestUpdateData() *pluginDriver.PluginDataType
- func (This *Event) SetIdVal(val interface{}) *Event
- func (This *Event) SetIsNull(b bool) *Event
- func (This *Event) SetSaveHistory(b bool) *Event
- func (This *Event) SetSchema(name string) *Event
- func (This *Event) SetTable(name string) *Event
- type EventType
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var MysqlCreateTalbeSQL = "" /* 1566-byte string literal not displayed */
Functions ¶
func GetRandomString ¶
Types ¶
type Column ¶
type Column struct { ColumnName string ColumnKey string ColumnDefault string DataType string Extra string ColumnType string CharacterSetName string CollationName string NumbericScale int IsBool bool Unsigned bool IsPrimary bool AutoIncrement bool EnumValues []string SetValues []string CharacterMaximumLength int NumbericPrecision int Value interface{} }
type DataStruct ¶
type DataStruct struct { Id uint32 `json:"id"` Test_unsinged_bigint uint64 `json:"test_unsinged_bigint"` Test_unsinged_int uint32 `json:"test_unsinged_int"` Test_unsinged_mediumint uint32 `json:"test_unsinged_mediumint"` Test_unsinged_smallint uint16 `json:"test_unsinged_smallint"` Test_unsinged_tinyint uint8 `json:"test_unsinged_tinyint"` Testtinyint int8 `json:"testtinyint"` Testsmallint int16 `json:"testsmallint"` Testmediumint int32 `json:"testmediumint"` Testint int32 `json:"testint"` Testbigint int64 `json:"testbigint"` Testbit int64 `json:"testbit"` Testbool bool `json:"testbool"` Testvarchar string `json:"testvarchar"` Testchar string `json:"testchar"` Testtime string `json:"testtime"` Testdate string `json:"testdate"` Testyear string `json:"testyear"` Testtimestamp string `json:"testtimestamp"` Testdatetime string `json:"testdatetime"` Testfloat float32 `json:"testfloat"` Testdouble float64 `json:"testdouble"` Testdecimal string `json:"testdecimal"` Testtext string `json:"testtext"` Testblob string `json:"testblob"` Testmediumblob string `json:"testmediumblob"` Testlongblob string `json:"testlongblob"` Testtinyblob string `json:"testtinyblob"` Testenum string `json:"testenum"` Testset []string `json:"testset"` }
type Event ¶
type Event struct { Schema string Talbe string AutoIncrementNum uint64 //自增字段值 ColumnList []*Column //字段属性列表 // contains filtered or unexported fields }
func (*Event) CheckData0 ¶
func (*Event) CheckData2 ¶
func (*Event) GetDataMap ¶
获取所有生成的数据结果
func (*Event) GetTestDeleteData ¶
func (This *Event) GetTestDeleteData() *pluginDriver.PluginDataType
func (*Event) GetTestInsertData ¶
func (This *Event) GetTestInsertData() *pluginDriver.PluginDataType
func (*Event) GetTestQueryData ¶
func (This *Event) GetTestQueryData() *pluginDriver.PluginDataType
func (*Event) GetTestUpdateData ¶
func (This *Event) GetTestUpdateData() *pluginDriver.PluginDataType
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) DoTestStart ¶
func (*Plugin) DoTestStartForSpeed ¶
用于性能测试。必须指定eventType,不支持debug
func (*Plugin) SetEventType ¶
Click to show internal directories.
Click to hide internal directories.