Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeEnumType ¶
type AttributeEnumType string
const AttributeEnumTypeActual AttributeEnumType = "Actual"
const AttributeEnumTypeMaxSet AttributeEnumType = "MaxSet"
const AttributeEnumTypeMinSet AttributeEnumType = "MinSet"
const AttributeEnumTypeTarget AttributeEnumType = "Target"
func (*AttributeEnumType) UnmarshalJSON ¶
func (j *AttributeEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type AttributeEnumType_1 ¶
type AttributeEnumType_1 string
const AttributeEnumType_1_Actual AttributeEnumType_1 = "Actual"
const AttributeEnumType_1_MaxSet AttributeEnumType_1 = "MaxSet"
const AttributeEnumType_1_MinSet AttributeEnumType_1 = "MinSet"
const AttributeEnumType_1_Target AttributeEnumType_1 = "Target"
func (*AttributeEnumType_1) UnmarshalJSON ¶
func (j *AttributeEnumType_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 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 SetVariableResultType ¶
type SetVariableResultType struct { // AttributeStatus corresponds to the JSON schema field "attributeStatus". AttributeStatus SetVariableStatusEnumType `json:"attributeStatus" yaml:"attributeStatus"` // AttributeStatusInfo corresponds to the JSON schema field "attributeStatusInfo". AttributeStatusInfo *StatusInfoType `json:"attributeStatusInfo,omitempty" yaml:"attributeStatusInfo,omitempty"` // AttributeType corresponds to the JSON schema field "attributeType". AttributeType *AttributeEnumType_1 `json:"attributeType,omitempty" yaml:"attributeType,omitempty"` // 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" yaml:"variable"` }
func (*SetVariableResultType) UnmarshalJSON ¶
func (j *SetVariableResultType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetVariableStatusEnumType ¶
type SetVariableStatusEnumType string
const SetVariableStatusEnumTypeAccepted SetVariableStatusEnumType = "Accepted"
const SetVariableStatusEnumTypeNotSupportedAttributeType SetVariableStatusEnumType = "NotSupportedAttributeType"
const SetVariableStatusEnumTypeRebootRequired SetVariableStatusEnumType = "RebootRequired"
const SetVariableStatusEnumTypeRejected SetVariableStatusEnumType = "Rejected"
const SetVariableStatusEnumTypeUnknownComponent SetVariableStatusEnumType = "UnknownComponent"
const SetVariableStatusEnumTypeUnknownVariable SetVariableStatusEnumType = "UnknownVariable"
func (*SetVariableStatusEnumType) UnmarshalJSON ¶
func (j *SetVariableStatusEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetVariableStatusEnumType_1 ¶
type SetVariableStatusEnumType_1 string
const SetVariableStatusEnumType_1_Accepted SetVariableStatusEnumType_1 = "Accepted"
const SetVariableStatusEnumType_1_NotSupportedAttributeType SetVariableStatusEnumType_1 = "NotSupportedAttributeType"
const SetVariableStatusEnumType_1_RebootRequired SetVariableStatusEnumType_1 = "RebootRequired"
const SetVariableStatusEnumType_1_Rejected SetVariableStatusEnumType_1 = "Rejected"
const SetVariableStatusEnumType_1_UnknownComponent SetVariableStatusEnumType_1 = "UnknownComponent"
const SetVariableStatusEnumType_1_UnknownVariable SetVariableStatusEnumType_1 = "UnknownVariable"
func (*SetVariableStatusEnumType_1) UnmarshalJSON ¶
func (j *SetVariableStatusEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetVariablesResponseJson ¶
type SetVariablesResponseJson struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // SetVariableResult corresponds to the JSON schema field "setVariableResult". SetVariableResult []SetVariableResultType `json:"setVariableResult" yaml:"setVariableResult"` }
func (*SetVariablesResponseJson) UnmarshalJSON ¶
func (j *SetVariablesResponseJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type StatusInfoType ¶
type StatusInfoType struct { // Additional text to provide detailed information. // AdditionalInfo *string `json:"additionalInfo,omitempty" yaml:"additionalInfo,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // A predefined code for the reason why the status is returned in this response. // The string is case-insensitive. // ReasonCode string `json:"reasonCode" yaml:"reasonCode"` }
Element providing more information about the status.
func (*StatusInfoType) UnmarshalJSON ¶
func (j *StatusInfoType) 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.