simulator

package
v0.0.0-...-70b330c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ActionNameStartSimulation is the name used to register the start simulation action.
	ActionNameStartSimulation = "start-simulation"

	// ActionNameStopSimulation is the name used to register the stop simulation action.
	ActionNameStopSimulation = "stop-simulation"

	// ApplicationName is the name of the current simulator's application.
	ApplicationName = "subt"
)

Variables

JobsStartSimulation groups the jobs needed to start a simulation.

JobsStopSimulation groups the jobs needed to stop a simulation.

Functions

func NewSimulator

func NewSimulator(config Config) simulator.Simulator

NewSimulator initializes a new Simulator implementation for SubT.

Types

type Config

type Config struct {
	DB                    *gorm.DB
	ApplicationServices   subtapp.Services
	ActionService         actions.Servicer
	DisableDefaultActions bool
}

Config is used to initialize a new simulator for SubT.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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