Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitEngineServices = func(h types.Hammer) (*EngineServices, error) { as := assertion.NewDefaultAssertionService() as.Init(h.Assertions) ps, err := proxy.NewProxyService(h.Proxy.Strategy) if err != nil { return nil, err } err = ps.Init(h.Proxy) if err != nil { return nil, err } rs, err := report.NewReportService(h.ReportDestination) if err != nil { return nil, err } if err = rs.Init(h.Debug, h.SamplingRate); err != nil { return nil, err } return &EngineServices{ Aborter: as, Asserter: as, ResListener: as, ProxyServ: ps, ReportServ: rs, }, nil }
Functions ¶
Types ¶
type EngineServices ¶ added in v1.0.0
type EngineServices struct { Aborter assertion.Aborter Asserter assertion.Asserter ResListener assertion.ResultListener ProxyServ proxy.ProxyService ReportServ report.ReportService }
Click to show internal directories.
Click to hide internal directories.