package
Version:
v0.1.7
Opens a new window with list of versions in this module.
Published: Jun 18, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package sim implements a charge point simulator driven by YAML scenarios.
Result is the outcome of one step.
Run connects a charge point and executes the scenario steps in order.
type Scenario struct {
Version string `yaml:"version"`
CPID string `yaml:"cpId"`
CSMSURL string `yaml:"csmsUrl"`
Steps []Step `yaml:"steps"`
}
Scenario is a full simulator run.
ParseScenario parses scenario YAML.
type Step struct {
Action string `yaml:"action"`
Payload map[string]any `yaml:"payload"`
DelayMs int `yaml:"delayMs"`
}
Step is one simulator action.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.