Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentCriterionEnumType ¶
type ComponentCriterionEnumType string
const ComponentCriterionEnumTypeActive ComponentCriterionEnumType = "Active"
const ComponentCriterionEnumTypeAvailable ComponentCriterionEnumType = "Available"
const ComponentCriterionEnumTypeEnabled ComponentCriterionEnumType = "Enabled"
const ComponentCriterionEnumTypeProblem ComponentCriterionEnumType = "Problem"
func (*ComponentCriterionEnumType) UnmarshalJSON ¶
func (j *ComponentCriterionEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ComponentCriterionEnumType_1 ¶
type ComponentCriterionEnumType_1 string
const ComponentCriterionEnumType_1_Active ComponentCriterionEnumType_1 = "Active"
const ComponentCriterionEnumType_1_Available ComponentCriterionEnumType_1 = "Available"
const ComponentCriterionEnumType_1_Enabled ComponentCriterionEnumType_1 = "Enabled"
const ComponentCriterionEnumType_1_Problem ComponentCriterionEnumType_1 = "Problem"
func (*ComponentCriterionEnumType_1) UnmarshalJSON ¶
func (j *ComponentCriterionEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ComponentType ¶
type ComponentType struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Evse corresponds to the JSON schema field "evse". Evse *EVSEType `json:"evse,omitempty" yaml:"evse,omitempty"` // Name of instance in case the component exists as multiple instances. Case // Insensitive. strongly advised to use Camel Case. // Instance *string `json:"instance,omitempty" yaml:"instance,omitempty"` // Name of the component. Name should be taken from the list of standardized // component names whenever possible. Case Insensitive. strongly advised to use // Camel Case. // Name string `json:"name" yaml:"name"` }
A physical or logical component
func (*ComponentType) UnmarshalJSON ¶
func (j *ComponentType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ComponentVariableType ¶
type ComponentVariableType struct { // Component corresponds to the JSON schema field "component". Component ComponentType `json:"component" yaml:"component"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Variable corresponds to the JSON schema field "variable". Variable *VariableType `json:"variable,omitempty" yaml:"variable,omitempty"` }
Class to report components, variables and variable attributes and characteristics.
func (*ComponentVariableType) UnmarshalJSON ¶
func (j *ComponentVariableType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CustomDataType ¶
type CustomDataType struct { // VendorId corresponds to the JSON schema field "vendorId". VendorId string `json:"vendorId" yaml:"vendorId"` }
This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.
func (*CustomDataType) UnmarshalJSON ¶
func (j *CustomDataType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type EVSEType ¶
type EVSEType struct { // An id to designate a specific connector (on an EVSE) by connector index number. // ConnectorId *int `json:"connectorId,omitempty" yaml:"connectorId,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Identified_ Object. MRID. Numeric_ Identifier // urn:x-enexis:ecdm:uid:1:569198 // EVSE Identifier. This contains a number (> 0) designating an EVSE of the // Charging Station. // Id int `json:"id" yaml:"id"` }
EVSE urn:x-oca:ocpp:uid:2:233123 Electric Vehicle Supply Equipment
func (*EVSEType) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type GetReportRequestJson ¶
type GetReportRequestJson struct { // This field contains criteria for components for which a report is requested // ComponentCriteria []ComponentCriterionEnumType_1 `json:"componentCriteria,omitempty" yaml:"componentCriteria,omitempty"` // ComponentVariable corresponds to the JSON schema field "componentVariable". ComponentVariable []ComponentVariableType `json:"componentVariable,omitempty" yaml:"componentVariable,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // The Id of the request. // RequestId int `json:"requestId" yaml:"requestId"` }
func (*GetReportRequestJson) UnmarshalJSON ¶
func (j *GetReportRequestJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VariableType ¶
type VariableType struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Name of instance in case the variable exists as multiple instances. Case // Insensitive. strongly advised to use Camel Case. // Instance *string `json:"instance,omitempty" yaml:"instance,omitempty"` // Name of the variable. Name should be taken from the list of standardized // variable names whenever possible. Case Insensitive. strongly advised to use // Camel Case. // Name string `json:"name" yaml:"name"` }
Reference key to a component-variable.
func (*VariableType) UnmarshalJSON ¶
func (j *VariableType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.