simulator

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidInput is returned when an invalid input is provided.
	ErrInvalidInput = errors.New("invalid input")
)

Functions

This section is empty.

Types

type Simulator

type Simulator interface {
	// Start triggers an action to start simulations.
	Start(ctx context.Context, platform platform.Platform, groupID simulations.GroupID) error

	// Stop triggers an action to stop a simulation.
	Stop(ctx context.Context, platform platform.Platform, groupID simulations.GroupID) error
}

Simulator groups a set of methods to perform different operations with simulations. Simulator should be implemented by the applications.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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