Documentation ¶
Index ¶
- Variables
- func CheckRunsGen()
- func FloatToString(i float64) string
- func InitData() (err error)
- func SetState(s bool, id int64, name string, scenarioType string, d int64, gun string, ...)
- func StartScenario(runid int64, host string, pathScript string, fileName string, str string) (err error)
- func StopScenario(runid int64, host string, str string) (err error)
- func СheckRun() (res bool)
- type GeneratorState
- type GetResponse
- type PreParseResponce
- type ScriptCache
- type StartRequest
- type StopRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //GetResponseAllData - struct for return information if scenarios and hosts. GetResponseAllData = GetResponse{} //GetState - struct for return state of scenario GetState = []scenario.State{} //LastRunsParams - sync map for last runs param from scenario LastRunsParams sync.Map //RunsGenerators - sync map for used generator RunsGenerators sync.Map //HostsAndUsers - sync map users from remote host HostsAndUsers sync.Map //PgClient - postgres client from service PgClient *postgres.PGClient )
Functions ¶
func CheckRunsGen ¶
func CheckRunsGen()
CheckRunsGen - func for chack state generators and change state
func FloatToString ¶
FloatToString - convert type float to type string
func SetState ¶
func SetState(s bool, id int64, name string, scenarioType string, d int64, gun string, generators []hosts.Host)
SetState - init state struct for ws
func StartScenario ¶
func StartScenario(runid int64, host string, pathScript string, fileName string, str string) (err error)
StartScenario - func for start test scenario and update state after the finish test
func StopScenario ¶
StopScenario - func for stop test scenario and update state
Types ¶
type GeneratorState ¶
GeneratorState - struct for generator state
type GetResponse ¶
GetResponse - struct for response
type PreParseResponce ¶
type ScriptCache ¶
type ScriptCache struct { ScriptFile []byte ParseParams []jmxparser.JMXParserResponse }
type StartRequest ¶
type StartRequest struct { Name string `json:"name"` Type string `json:"type"` Gun string `json:"gun"` Projects string `json:"project"` Generators []hosts.Host Params []scenario.ThreadGroup }
StartRequest - struct request for start scenario
Click to show internal directories.
Click to hide internal directories.