Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scenario ¶
type Scenario struct { UUID string Gateways []*lora.LorhammerGateway ScenarioSleepTime [2]time.Duration GatewaySleepTime [2]time.Duration NbScenarioReplayLaps int RxpkDate uint64 WithJoin bool MessageFcnt uint32 AppsKey string Nwskey string Payloads []model.Payload // contains filtered or unexported fields }
Scenario struc define scenari with metadata
func NewScenario ¶
NewScenario provide new Scenario with param defined in model.Init
func (*Scenario) Cron ¶
func (p *Scenario) Cron(prometheus metrics.Prometheus) context.Context
Cron start scenario in go routine and start gateway every `scenario.ScenarioSleepTime`
func (*Scenario) Join ¶
func (p *Scenario) Join(prometheus metrics.Prometheus)
Join launch all gateways join method
func (*Scenario) Stop ¶
func (p *Scenario) Stop(prometheus metrics.Prometheus)
Stop stop scenario launched in Start
Click to show internal directories.
Click to hide internal directories.