Documentation
¶
Index ¶
Constants ¶
View Source
const MySchedulerName = "myscheduler"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyScheduler ¶
type MyScheduler struct { scheduler.Scheduler Settings MySchedulerSettings `json:"settings" doc-key:"config.myscheduler.settings"` }
func (MyScheduler) Execute ¶
func (sched MyScheduler) Execute( ctx context.Context, log *logger.Log, timeout time.Duration, scenario []scenario.Action, outputsDir string, users users.UserGenerator, connectionSettings *connection.ConnectionSettings, counters *statistics.ExecutionCounters, ) error
Execute scheduler
func (MyScheduler) PopulateHookData ¶
func (sched MyScheduler) PopulateHookData(data map[string]interface{})
PopulateHookData populate map with data which can be used by go template in hooks
func (MyScheduler) RequireScenario ¶
func (sched MyScheduler) RequireScenario() bool
RequireScenario reports if the scheduler requires a scenario or not for scheduler validation.
func (MyScheduler) Validate ¶
func (sched MyScheduler) Validate() ([]string, error)
Validate scheduler
type MySchedulerSettings ¶
type MySchedulerSettings struct {
ConcurrentUsers int `json:"concurrentUsers" displayname:"Concurrent users" doc-key:"config.scheduler.settings.concurrentusers"`
}
Click to show internal directories.
Click to hide internal directories.