Documentation ¶
Index ¶
- func DataLoadExFile(file *string, e *EVChargers) (int, error)
- func DataLoadJsonDir(dir *string, e *EVChargers) (int, error)
- func DataLoadRandom(config *string, e *EVChargers) error
- func DataPrint(e *EVChargers)
- type ChargeData
- type ChargeRecord
- type EVChargers
- type SimulatorServer
- func (s SimulatorServer) ClearShedState(req *schema.ClearShedStateRequest) (*schema.ClearShedStateResponse, error)
- func (s SimulatorServer) GetCPNInstances(req *schema.GetCPNInstancesRequest) (*schema.GetCPNInstancesResponse, error)
- func (s SimulatorServer) GetLoad(req *schema.GetLoadRequest) (*schema.GetLoadResponse, error)
- func (s SimulatorServer) GetStationGroups(req *schema.GetStationGroupsRequest) (*schema.GetStationGroupsResponse, error)
- func (s SimulatorServer) GetStations(req *schema.GetStationsRequest) (*schema.GetStationsResponse, error)
- func (s SimulatorServer) ShedLoad(req *schema.ShedLoadRequest) (*schema.ShedLoadResponse, error)
- type StationData
- type StationPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataLoadExFile ¶
func DataLoadExFile(file *string, e *EVChargers) (int, error)
func DataLoadJsonDir ¶
func DataLoadJsonDir(dir *string, e *EVChargers) (int, error)
func DataLoadRandom ¶
func DataLoadRandom(config *string, e *EVChargers) error
func DataPrint ¶
func DataPrint(e *EVChargers)
DataPrint prints the entire database with all charger ports
Types ¶
type ChargeData ¶
type ChargeRecord ¶
type ChargeRecord struct { Ts float64 `json:"ts"` Data ChargeData `json:"data"` }
type EVChargers ¶
type EVChargers struct {
// contains filtered or unexported fields
}
func NewEvChargers ¶
func NewEvChargers() *EVChargers
type SimulatorServer ¶
type SimulatorServer struct {
Ev *EVChargers
}
func (SimulatorServer) ClearShedState ¶
func (s SimulatorServer) ClearShedState(req *schema.ClearShedStateRequest) (*schema.ClearShedStateResponse, error)
func (SimulatorServer) GetCPNInstances ¶
func (s SimulatorServer) GetCPNInstances(req *schema.GetCPNInstancesRequest) (*schema.GetCPNInstancesResponse, error)
func (SimulatorServer) GetLoad ¶
func (s SimulatorServer) GetLoad(req *schema.GetLoadRequest) (*schema.GetLoadResponse, error)
func (SimulatorServer) GetStationGroups ¶
func (s SimulatorServer) GetStationGroups(req *schema.GetStationGroupsRequest) (*schema.GetStationGroupsResponse, error)
func (SimulatorServer) GetStations ¶
func (s SimulatorServer) GetStations(req *schema.GetStationsRequest) (*schema.GetStationsResponse, error)
func (SimulatorServer) ShedLoad ¶
func (s SimulatorServer) ShedLoad(req *schema.ShedLoadRequest) (*schema.ShedLoadResponse, error)
type StationData ¶
type StationData struct { StationID string `json:"stationID"` StationName string `json:"stationName"` Address string `json:"Address"` StationLoad float32 `json:"stationLoad"` Ports []StationPort `json:"Port"` }
type StationPort ¶
Click to show internal directories.
Click to hide internal directories.