Documentation
¶
Index ¶
- type ComponentType
- type CustomDataType
- type EVSEType
- type MessageContentType
- type MessageFormatEnumType
- type MessageFormatEnumType_1
- type MessageInfoType
- type MessagePriorityEnumType
- type MessagePriorityEnumType_1
- type MessageStateEnumType
- type MessageStateEnumType_1
- type SetDisplayMessageRequestJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 MessageContentType ¶
type MessageContentType struct { // Message_ Content. Content. Message // urn:x-enexis:ecdm:uid:1:570852 // Message contents. // // Content string `json:"content" yaml:"content"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Format corresponds to the JSON schema field "format". Format MessageFormatEnumType `json:"format" yaml:"format"` // Message_ Content. Language. Language_ Code // urn:x-enexis:ecdm:uid:1:570849 // Message language identifier. Contains a language code as defined in // <<ref-RFC5646,[RFC5646]>>. // Language *string `json:"language,omitempty" yaml:"language,omitempty"` }
Message_ Content urn:x-enexis:ecdm:uid:2:234490 Contains message details, for a message to be displayed on a Charging Station.
func (*MessageContentType) UnmarshalJSON ¶
func (j *MessageContentType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageFormatEnumType ¶
type MessageFormatEnumType string
const MessageFormatEnumTypeASCII MessageFormatEnumType = "ASCII"
const MessageFormatEnumTypeHTML MessageFormatEnumType = "HTML"
const MessageFormatEnumTypeURI MessageFormatEnumType = "URI"
const MessageFormatEnumTypeUTF8 MessageFormatEnumType = "UTF8"
func (*MessageFormatEnumType) UnmarshalJSON ¶
func (j *MessageFormatEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageFormatEnumType_1 ¶
type MessageFormatEnumType_1 string
const MessageFormatEnumType_1_ASCII MessageFormatEnumType_1 = "ASCII"
const MessageFormatEnumType_1_HTML MessageFormatEnumType_1 = "HTML"
const MessageFormatEnumType_1_URI MessageFormatEnumType_1 = "URI"
const MessageFormatEnumType_1_UTF8 MessageFormatEnumType_1 = "UTF8"
func (*MessageFormatEnumType_1) UnmarshalJSON ¶
func (j *MessageFormatEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageInfoType ¶
type MessageInfoType struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Display corresponds to the JSON schema field "display". Display *ComponentType `json:"display,omitempty" yaml:"display,omitempty"` // Message_ Info. End. Date_ Time // urn:x-enexis:ecdm:uid:1:569257 // Until what date-time should this message be shown, after this date/time this // message SHALL be removed. // EndDateTime *string `json:"endDateTime,omitempty" yaml:"endDateTime,omitempty"` // Identified_ Object. MRID. Numeric_ Identifier // urn:x-enexis:ecdm:uid:1:569198 // Master resource identifier, unique within an exchange context. It is defined // within the OCPP context as a positive Integer value (greater or equal to zero). // Id int `json:"id" yaml:"id"` // Message corresponds to the JSON schema field "message". Message MessageContentType `json:"message" yaml:"message"` // Priority corresponds to the JSON schema field "priority". Priority MessagePriorityEnumType `json:"priority" yaml:"priority"` // Message_ Info. Start. Date_ Time // urn:x-enexis:ecdm:uid:1:569256 // From what date-time should this message be shown. If omitted: directly. // StartDateTime *string `json:"startDateTime,omitempty" yaml:"startDateTime,omitempty"` // State corresponds to the JSON schema field "state". State *MessageStateEnumType `json:"state,omitempty" yaml:"state,omitempty"` // During which transaction shall this message be shown. // Message SHALL be removed by the Charging Station after transaction has // ended. // TransactionId *string `json:"transactionId,omitempty" yaml:"transactionId,omitempty"` }
Message_ Info urn:x-enexis:ecdm:uid:2:233264 Contains message details, for a message to be displayed on a Charging Station.
func (*MessageInfoType) UnmarshalJSON ¶
func (j *MessageInfoType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessagePriorityEnumType ¶
type MessagePriorityEnumType string
const MessagePriorityEnumTypeAlwaysFront MessagePriorityEnumType = "AlwaysFront"
const MessagePriorityEnumTypeInFront MessagePriorityEnumType = "InFront"
const MessagePriorityEnumTypeNormalCycle MessagePriorityEnumType = "NormalCycle"
func (*MessagePriorityEnumType) UnmarshalJSON ¶
func (j *MessagePriorityEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessagePriorityEnumType_1 ¶
type MessagePriorityEnumType_1 string
const MessagePriorityEnumType_1_AlwaysFront MessagePriorityEnumType_1 = "AlwaysFront"
const MessagePriorityEnumType_1_InFront MessagePriorityEnumType_1 = "InFront"
const MessagePriorityEnumType_1_NormalCycle MessagePriorityEnumType_1 = "NormalCycle"
func (*MessagePriorityEnumType_1) UnmarshalJSON ¶
func (j *MessagePriorityEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageStateEnumType ¶
type MessageStateEnumType string
const MessageStateEnumTypeCharging MessageStateEnumType = "Charging"
const MessageStateEnumTypeFaulted MessageStateEnumType = "Faulted"
const MessageStateEnumTypeIdle MessageStateEnumType = "Idle"
func (*MessageStateEnumType) UnmarshalJSON ¶
func (j *MessageStateEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageStateEnumType_1 ¶
type MessageStateEnumType_1 string
const MessageStateEnumType_1_Charging MessageStateEnumType_1 = "Charging"
const MessageStateEnumType_1_Faulted MessageStateEnumType_1 = "Faulted"
const MessageStateEnumType_1_Idle MessageStateEnumType_1 = "Idle"
func (*MessageStateEnumType_1) UnmarshalJSON ¶
func (j *MessageStateEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetDisplayMessageRequestJson ¶
type SetDisplayMessageRequestJson struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Message corresponds to the JSON schema field "message". Message MessageInfoType `json:"message" yaml:"message"` }
func (*SetDisplayMessageRequestJson) UnmarshalJSON ¶
func (j *SetDisplayMessageRequestJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.