Documentation
¶
Overview ¶
Package loader reads codegen inputs: JSON schemas and profile YAML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Profile ¶
type Profile struct {
Messages []ProfileMessage `yaml:"messages"`
}
Profile is one OCPP feature profile (Core, FirmwareManagement, ...).
type ProfileMessage ¶
type ProfileMessage struct {
Name string `yaml:"name"`
Request string `yaml:"request"`
Response string `yaml:"response"`
Dir string `yaml:"dir"`
}
ProfileMessage maps one action to its schema files and direction.
type ProfileSet ¶
type ProfileSet struct {
Version string `yaml:"version"`
Profiles map[string]Profile `yaml:"profiles"`
}
ProfileSet is the full v*.yaml document.
func LoadProfile ¶
func LoadProfile(path string) (ProfileSet, error)
LoadProfile reads and parses a profile YAML file.
Click to show internal directories.
Click to hide internal directories.