Versions in this module Expand all Collapse all v0 v0.18.2 Mar 6, 2024 v0.18.1 Feb 21, 2024 v0.18.0 Feb 2, 2024 Changes in this version + const ClearVariableMonitoringFeatureName + const CustomerInformationFeatureName + const GetLogFeatureName + const GetMonitoringReportFeatureName + const LogStatusAccepted + const LogStatusAcceptedCanceled + const LogStatusNotificationFeatureName + const LogStatusRejected + const LogTypeDiagnostics + const LogTypeSecurity + const NotifyCustomerInformationFeatureName + const NotifyEventFeatureName + const NotifyMonitoringReportFeatureName + const ProfileName + const SetMonitoringBaseFeatureName + const SetMonitoringLevelFeatureName + const SetVariableMonitoringFeatureName + var Profile = ocpp.NewProfile(ProfileName, ClearVariableMonitoringFeature{}, CustomerInformationFeature{}, ...) + type CSMSHandler interface + OnLogStatusNotification func(chargingStationID string, request *LogStatusNotificationRequest) (response *LogStatusNotificationResponse, err error) + OnNotifyCustomerInformation func(chargingStationID string, request *NotifyCustomerInformationRequest) (response *NotifyCustomerInformationResponse, err error) + OnNotifyEvent func(chargingStationID string, request *NotifyEventRequest) (response *NotifyEventResponse, err error) + OnNotifyMonitoringReport func(chargingStationID string, request *NotifyMonitoringReportRequest) (response *NotifyMonitoringReportResponse, err error) + type ChargingStationHandler interface + OnClearVariableMonitoring func(request *ClearVariableMonitoringRequest) (response *ClearVariableMonitoringResponse, err error) + OnCustomerInformation func(request *CustomerInformationRequest) (response *CustomerInformationResponse, err error) + OnGetLog func(request *GetLogRequest) (response *GetLogResponse, err error) + OnGetMonitoringReport func(request *GetMonitoringReportRequest) (response *GetMonitoringReportResponse, err error) + OnSetMonitoringBase func(request *SetMonitoringBaseRequest) (response *SetMonitoringBaseResponse, err error) + OnSetMonitoringLevel func(request *SetMonitoringLevelRequest) (response *SetMonitoringLevelResponse, err error) + OnSetVariableMonitoring func(request *SetVariableMonitoringRequest) (response *SetVariableMonitoringResponse, err error) + type ClearMonitoringResult struct + ID int + Status ClearMonitoringStatus + type ClearMonitoringStatus string + const ClearMonitoringStatusAccepted + const ClearMonitoringStatusNotFound + const ClearMonitoringStatusRejected + type ClearVariableMonitoringFeature struct + func (f ClearVariableMonitoringFeature) GetFeatureName() string + func (f ClearVariableMonitoringFeature) GetRequestType() reflect.Type + func (f ClearVariableMonitoringFeature) GetResponseType() reflect.Type + type ClearVariableMonitoringRequest struct + ID []int + func NewClearVariableMonitoringRequest(id []int) *ClearVariableMonitoringRequest + func (r ClearVariableMonitoringRequest) GetFeatureName() string + type ClearVariableMonitoringResponse struct + ClearMonitoringResult []ClearMonitoringResult + func NewClearVariableMonitoringResponse(result []ClearMonitoringResult) *ClearVariableMonitoringResponse + func (c ClearVariableMonitoringResponse) GetFeatureName() string + type CustomerInformationFeature struct + func (f CustomerInformationFeature) GetFeatureName() string + func (f CustomerInformationFeature) GetRequestType() reflect.Type + func (f CustomerInformationFeature) GetResponseType() reflect.Type + type CustomerInformationRequest struct + Clear bool + CustomerCertificate *types.CertificateHashData + CustomerIdentifier string + IdToken *types.IdToken + Report bool + RequestID int + func NewCustomerInformationRequest(requestId int, report bool, clear bool) *CustomerInformationRequest + func (r CustomerInformationRequest) GetFeatureName() string + type CustomerInformationResponse struct + Status CustomerInformationStatus + StatusInfo *types.StatusInfo + func NewCustomerInformationResponse(status CustomerInformationStatus) *CustomerInformationResponse + func (c CustomerInformationResponse) GetFeatureName() string + type CustomerInformationStatus string + const CustomerInformationStatusAccepted + const CustomerInformationStatusInvalid + const CustomerInformationStatusRejected + type EventData struct + ActualValue string + Cause *int + Cleared bool + Component types.Component + EventID int + EventNotificationType EventNotification + TechCode string + TechInfo string + Timestamp *types.DateTime + TransactionID string + Trigger EventTrigger + Variable types.Variable + VariableMonitoringID *int + type EventNotification string + const EventCustomMonitor + const EventHardWiredMonitor + const EventHardWiredNotification + const EventPreconfiguredMonitor + type EventTrigger string + const EventTriggerAlerting + const EventTriggerDelta + const EventTriggerPeriodic + type GetLogFeature struct + func (f GetLogFeature) GetFeatureName() string + func (f GetLogFeature) GetRequestType() reflect.Type + func (f GetLogFeature) GetResponseType() reflect.Type + type GetLogRequest struct + Log LogParameters + LogType LogType + RequestID int + Retries *int + RetryInterval *int + func NewGetLogRequest(logType LogType, requestID int, logParameters LogParameters) *GetLogRequest + func (r GetLogRequest) GetFeatureName() string + type GetLogResponse struct + Filename string + Status LogStatus + func NewGetLogResponse(status LogStatus) *GetLogResponse + func (c GetLogResponse) GetFeatureName() string + type GetMonitoringReportFeature struct + func (f GetMonitoringReportFeature) GetFeatureName() string + func (f GetMonitoringReportFeature) GetRequestType() reflect.Type + func (f GetMonitoringReportFeature) GetResponseType() reflect.Type + type GetMonitoringReportRequest struct + ComponentVariable []types.ComponentVariable + MonitoringCriteria []MonitoringCriteriaType + RequestID *int + func NewGetMonitoringReportRequest() *GetMonitoringReportRequest + func (r GetMonitoringReportRequest) GetFeatureName() string + type GetMonitoringReportResponse struct + Status types.GenericDeviceModelStatus + func NewGetMonitoringReportResponse(status types.GenericDeviceModelStatus) *GetMonitoringReportResponse + func (c GetMonitoringReportResponse) GetFeatureName() string + type LogParameters struct + LatestTimestamp *types.DateTime + OldestTimestamp *types.DateTime + RemoteLocation string + type LogStatus string + type LogStatusNotificationFeature struct + func (f LogStatusNotificationFeature) GetFeatureName() string + func (f LogStatusNotificationFeature) GetRequestType() reflect.Type + func (f LogStatusNotificationFeature) GetResponseType() reflect.Type + type LogStatusNotificationRequest struct + RequestID int + Status UploadLogStatus + func NewLogStatusNotificationRequest(status UploadLogStatus, requestID int) *LogStatusNotificationRequest + func (r LogStatusNotificationRequest) GetFeatureName() string + type LogStatusNotificationResponse struct + func NewLogStatusNotificationResponse() *LogStatusNotificationResponse + func (c LogStatusNotificationResponse) GetFeatureName() string + type LogType string + type MonitorType string + const MonitorDelta + const MonitorLowerThreshold + const MonitorPeriodic + const MonitorPeriodicClockAligned + const MonitorUpperThreshold + type MonitoringBase string + const MonitoringBaseAll + const MonitoringBaseFactoryDefault + const MonitoringBaseHardWiredOnly + type MonitoringCriteriaType string + const MonitoringCriteriaDeltaMonitoring + const MonitoringCriteriaPeriodicMonitoring + const MonitoringCriteriaThresholdMonitoring + type MonitoringData struct + Component types.Component + Variable types.Variable + VariableMonitoring []VariableMonitoring + type NotifyCustomerInformationFeature struct + func (f NotifyCustomerInformationFeature) GetFeatureName() string + func (f NotifyCustomerInformationFeature) GetRequestType() reflect.Type + func (f NotifyCustomerInformationFeature) GetResponseType() reflect.Type + type NotifyCustomerInformationRequest struct + Data string + GeneratedAt types.DateTime + RequestID int + SeqNo int + Tbc bool + func NewNotifyCustomerInformationRequest(Data string, seqNo int, generatedAt types.DateTime, requestID int) *NotifyCustomerInformationRequest + func (r NotifyCustomerInformationRequest) GetFeatureName() string + type NotifyCustomerInformationResponse struct + func NewNotifyCustomerInformationResponse() *NotifyCustomerInformationResponse + func (c NotifyCustomerInformationResponse) GetFeatureName() string + type NotifyEventFeature struct + func (f NotifyEventFeature) GetFeatureName() string + func (f NotifyEventFeature) GetRequestType() reflect.Type + func (f NotifyEventFeature) GetResponseType() reflect.Type + type NotifyEventRequest struct + EventData []EventData + GeneratedAt *types.DateTime + SeqNo int + Tbc bool + func NewNotifyEventRequest(generatedAt *types.DateTime, seqNo int, eventData []EventData) *NotifyEventRequest + func (r NotifyEventRequest) GetFeatureName() string + type NotifyEventResponse struct + func NewNotifyEventResponse() *NotifyEventResponse + func (c NotifyEventResponse) GetFeatureName() string + type NotifyMonitoringReportFeature struct + func (f NotifyMonitoringReportFeature) GetFeatureName() string + func (f NotifyMonitoringReportFeature) GetRequestType() reflect.Type + func (f NotifyMonitoringReportFeature) GetResponseType() reflect.Type + type NotifyMonitoringReportRequest struct + GeneratedAt *types.DateTime + Monitor []MonitoringData + RequestID int + SeqNo int + Tbc bool + func NewNotifyMonitoringReportRequest(requestID int, seqNo int, generatedAt *types.DateTime, ...) *NotifyMonitoringReportRequest + func (r NotifyMonitoringReportRequest) GetFeatureName() string + type NotifyMonitoringReportResponse struct + func NewNotifyMonitoringReportResponse() *NotifyMonitoringReportResponse + func (c NotifyMonitoringReportResponse) GetFeatureName() string + type SetMonitoringBaseFeature struct + func (f SetMonitoringBaseFeature) GetFeatureName() string + func (f SetMonitoringBaseFeature) GetRequestType() reflect.Type + func (f SetMonitoringBaseFeature) GetResponseType() reflect.Type + type SetMonitoringBaseRequest struct + MonitoringBase MonitoringBase + func NewSetMonitoringBaseRequest(monitoringBase MonitoringBase) *SetMonitoringBaseRequest + func (r SetMonitoringBaseRequest) GetFeatureName() string + type SetMonitoringBaseResponse struct + Status types.GenericDeviceModelStatus + StatusInfo *types.StatusInfo + func NewSetMonitoringBaseResponse(status types.GenericDeviceModelStatus) *SetMonitoringBaseResponse + func (c SetMonitoringBaseResponse) GetFeatureName() string + type SetMonitoringData struct + Component types.Component + ID *int + Severity int + Transaction bool + Type MonitorType + Value float64 + Variable types.Variable + type SetMonitoringLevelFeature struct + func (f SetMonitoringLevelFeature) GetFeatureName() string + func (f SetMonitoringLevelFeature) GetRequestType() reflect.Type + func (f SetMonitoringLevelFeature) GetResponseType() reflect.Type + type SetMonitoringLevelRequest struct + Severity int + func NewSetMonitoringLevelRequest(severity int) *SetMonitoringLevelRequest + func (r SetMonitoringLevelRequest) GetFeatureName() string + type SetMonitoringLevelResponse struct + Status types.GenericDeviceModelStatus + StatusInfo *types.StatusInfo + func NewSetMonitoringLevelResponse(status types.GenericDeviceModelStatus) *SetMonitoringLevelResponse + func (c SetMonitoringLevelResponse) GetFeatureName() string + type SetMonitoringResult struct + Component types.Component + ID *int + Severity int + Status SetMonitoringStatus + StatusInfo *types.StatusInfo + Type MonitorType + Variable types.Variable + type SetMonitoringStatus string + const SetMonitoringStatusAccepted + const SetMonitoringStatusDuplicate + const SetMonitoringStatusRejected + const SetMonitoringStatusUnknownComponent + const SetMonitoringStatusUnknownVariable + const SetMonitoringStatusUnsupportedMonitorType + type SetVariableMonitoringFeature struct + func (f SetVariableMonitoringFeature) GetFeatureName() string + func (f SetVariableMonitoringFeature) GetRequestType() reflect.Type + func (f SetVariableMonitoringFeature) GetResponseType() reflect.Type + type SetVariableMonitoringRequest struct + MonitoringData []SetMonitoringData + func NewSetVariableMonitoringRequest(data []SetMonitoringData) *SetVariableMonitoringRequest + func (r SetVariableMonitoringRequest) GetFeatureName() string + type SetVariableMonitoringResponse struct + MonitoringResult []SetMonitoringResult + func NewSetVariableMonitoringResponse(result []SetMonitoringResult) *SetVariableMonitoringResponse + func (c SetVariableMonitoringResponse) GetFeatureName() string + type UploadLogStatus string + const UploadLogStatusBadMessage + const UploadLogStatusIdle + const UploadLogStatusNotSupportedOp + const UploadLogStatusPermissionDenied + const UploadLogStatusUploadFailure + const UploadLogStatusUploaded + const UploadLogStatusUploading + type VariableMonitoring struct + ID int + Severity int + Transaction bool + Type MonitorType + Value float64 + func NewVariableMonitoring(id int, transaction bool, value float64, t MonitorType, severity int) VariableMonitoring