scenario

package
v0.0.0-...-fd2512f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

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

func NewScenario(init model.Init) (*Scenario, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL