Documentation ¶
Index ¶
- Variables
- func AfterTest()
- func BeforeTest()
- func CreatePlanFromURLList(config *config.Configuration) core.Plan
- type Control
- type Controller
- func (instance *Controller) Events() <-chan string
- func (instance *Controller) History() []*ExecutionID
- func (instance *Controller) Start(config *config.Configuration) (*ExecutionID, error)
- func (instance *Controller) Status(*ExecutionID) statistics.AggregatorSnapShot
- func (instance *Controller) Stop(id *ExecutionID) statistics.AggregatorSnapShot
- type ExecutionBranch
- type ExecutionID
- type Host
- type JobDurationStream
- type JobIterationStream
- type JobRandomStream
- type JobRevolvingStream
- type JobSequentialStream
- type JobStream
- type ListRingRevolver
- type ListStream
- type PlanExecutionContext
- type PlanExecutor
- type ProgressBar
- type RevolvingListStream
- type StepDelayStream
- type StepSequentialStream
- type StepStream
Constants ¶
This section is empty.
Variables ¶
var ( //RandomSource ... RandomSource = rand.NewSource(time.Now().UnixNano()) //Random ... Random = rand.New(RandomSource) //RandomMax ... RandomMax = func(max int) int { rand.Seed(time.Now().UnixNano()) return rand.Intn(max) } )
var ( //TestServer ... TestServer *rizo.RequestRecordingServer )
Functions ¶
func BeforeTest ¶
func BeforeTest()
func CreatePlanFromURLList ¶
func CreatePlanFromURLList(config *config.Configuration) core.Plan
CreatePlanFromURLList ...
Types ¶
type Control ¶
type Control interface { Start(*config.Configuration) (*ExecutionID, error) Stop(*ExecutionID) statistics.AggregatorSnapShot Status(*ExecutionID) statistics.AggregatorSnapShot History() []*ExecutionID Events() <-chan string }
Control ...
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller ...
func (*Controller) Start ¶
func (instance *Controller) Start(config *config.Configuration) (*ExecutionID, error)
Start ...
func (*Controller) Status ¶
func (instance *Controller) Status(*ExecutionID) statistics.AggregatorSnapShot
Status ...
func (*Controller) Stop ¶
func (instance *Controller) Stop(id *ExecutionID) statistics.AggregatorSnapShot
Stop ... A1
type ExecutionID ¶
type ExecutionID struct {
// contains filtered or unexported fields
}
ExecutionID ...
type JobDurationStream ¶
type JobDurationStream struct {
// contains filtered or unexported fields
}
JobDurationStream ...
func CreateJobDurationStream ¶
func CreateJobDurationStream(stream JobStream, duration time.Duration) *JobDurationStream
CreateJobDurationStream ...
type JobIterationStream ¶
type JobIterationStream struct {
// contains filtered or unexported fields
}
JobIterationStream ...
func CreateJobIterationStream ¶
func CreateJobIterationStream(stream JobRevolvingStream, jobCount int, iterations int) *JobIterationStream
CreateJobIterationStream ...
func (*JobIterationStream) Progress ¶
func (instance *JobIterationStream) Progress() int
Progress ...
type JobRandomStream ¶
type JobRandomStream struct {
// contains filtered or unexported fields
}
JobRandomStream ...
func CreateJobRandomStream ¶
func CreateJobRandomStream(items []core.Job) *JobRandomStream
CreateJobRandomStream ...
type JobRevolvingStream ¶
type JobRevolvingStream struct {
// contains filtered or unexported fields
}
JobRevolvingStream ...
func CreateJobRevolvingStream ¶
func CreateJobRevolvingStream(stream JobStream) *JobRevolvingStream
CreateJobRevolvingStream ...
type JobSequentialStream ¶
type JobSequentialStream struct {
// contains filtered or unexported fields
}
JobSequentialStream ...
func CreateJobSequentialStream ¶
func CreateJobSequentialStream(items []core.Job) *JobSequentialStream
CreateJobSequentialStream ...
func (*JobSequentialStream) HasNext ¶
func (instance *JobSequentialStream) HasNext() bool
HasNext ...
func (*JobSequentialStream) Progress ¶
func (instance *JobSequentialStream) Progress() int
Progress ...
type JobStream ¶
JobStream ...
func CreateJobStream ¶
func CreateJobStream(jobs []core.Job, config *config.Configuration) JobStream
CreateJobStream ...
type ListRingRevolver ¶
type ListRingRevolver struct {
Lists map[string]ListStream
}
ListRingRevolver ...
func NewListRingRevolver ¶
func NewListRingRevolver(data map[string][]map[string]interface{}) *ListRingRevolver
NewListRingRevolver ...
func (*ListRingRevolver) Values ¶
func (instance *ListRingRevolver) Values() map[string]interface{}
Values ...
type ListStream ¶
ListStream ...
type PlanExecutionContext ¶
type PlanExecutionContext struct { Plan core.Plan Lists *ListRingRevolver Config *config.Configuration Publisher chan core.ExecutionResult PlanContext core.ExtractionResult JobContexts map[int]core.ExtractionResult StepContexts map[int]map[int]core.ExtractionResult Bar ProgressBar // contains filtered or unexported fields }
PlanExecutionContext encapsulates the runtime state in order to execute a plan
type PlanExecutor ¶
type PlanExecutor struct { Config *config.Configuration Bar ProgressBar Publisher chan core.ExecutionResult Lists *ListRingRevolver Plan core.Plan PlanContext core.ExtractionResult JobContexts map[int]core.ExtractionResult StepContexts map[int]map[int]core.ExtractionResult // contains filtered or unexported fields }
PlanExecutor ...
func CreatePlanExecutor ¶
func CreatePlanExecutor(config *config.Configuration, bar ProgressBar, registry core.Registry, aggregator statistics.AggregatorInterfaceToRenameLater, publisher chan core.ExecutionResult) *PlanExecutor
CreatePlanExecutor ...
type RevolvingListStream ¶
type RevolvingListStream struct {
// contains filtered or unexported fields
}
RevolvingListStream ...
func NewRevolvingListStream ¶
func NewRevolvingListStream(data []map[string]interface{}) *RevolvingListStream
NewRevolvingListStream ...
func (*RevolvingListStream) HasNext ¶
func (instance *RevolvingListStream) HasNext() bool
HasNext ...
func (*RevolvingListStream) Next ¶
func (instance *RevolvingListStream) Next() map[string]interface{}
Next ...
type StepDelayStream ¶
type StepDelayStream struct {
// contains filtered or unexported fields
}
StepDelayStream ...
func CreateStepDelayStream ¶
func CreateStepDelayStream(stream StepStream, delay time.Duration) StepDelayStream
CreateStepDelayStream ...
type StepSequentialStream ¶
type StepSequentialStream struct {
// contains filtered or unexported fields
}
StepSequentialStream ...
func CreateStepSequentialStream ¶
func CreateStepSequentialStream(items []core.Step) *StepSequentialStream
CreateStepSequentialStream ...
func (*StepSequentialStream) HasNext ¶
func (instance *StepSequentialStream) HasNext() bool
HasNext ...
func (*StepSequentialStream) Progress ¶
func (instance *StepSequentialStream) Progress() int
Progress ...
Source Files ¶
- Control.go
- ExecutionID.go
- Host.go
- JobDurationStream.go
- JobIterationStream.go
- JobRandomStream.go
- JobRevolingStream.go
- JobSequentialStream.go
- JobStream.go
- JobStreamFactory.go
- ListRingRevolver.go
- ListStream.go
- PlanExecutor.go
- ProgressBar.go
- RevolvingListStream.go
- StepDelayStream.go
- StepSequentialStream.go
- StepStream.go
- TestSetup.go