Documentation ¶
Index ¶
- Variables
- func IsISO8601Date(fl validator.FieldLevel) bool
- type AuthorizationData
- type AuthorizeConf
- type AuthorizeReq
- type BootNotificationConf
- type BootNotificationReq
- type CancelReservationConf
- type CancelReservationReq
- type ChangeAvailabilityConf
- type ChangeAvailabilityReq
- type ChangeConfigurationConf
- type ChangeConfigurationReq
- type ChargingProfile
- type ChargingSchedule
- type ChargingSchedulePeriod
- type ClearCacheConf
- type ClearCacheReq
- type ClearChargingProfileConf
- type ClearChargingProfileReq
- type DataTransferConf
- type DataTransferReq
- type DiagnosticsStatusNotificationConf
- type DiagnosticsStatusNotificationReq
- type FirmwareStatusNotificationConf
- type FirmwareStatusNotificationReq
- type GetCompositeScheduleConf
- type GetCompositeScheduleReq
- type GetConfigurationConf
- type GetConfigurationReq
- type GetDiagnosticsConf
- type GetDiagnosticsReq
- type GetLocalListVersionConf
- type GetLocalListVersionReq
- type HeartbeatConf
- type HeartbeatReq
- type IdTagInfo
- type MeterValue
- type MeterValuesConf
- type MeterValuesReq
- type RemoteStartTransactionConf
- type RemoteStartTransactionReq
- type RemoteStopTransactionConf
- type RemoteStopTransactionReq
- type ReserveNowConf
- type ReserveNowReq
- type ResetConf
- type ResetReq
- type SampledValue
- type SendLocalListConf
- type SendLocalListReq
- type SetChargingProfileConf
- type SetChargingProfileReq
- type StartTransactionConf
- type StartTransactionReq
- type StatusNotificationConf
- type StatusNotificationReq
- type StopTransactionConf
- type StopTransactionReq
- type TriggerMessageConf
- type TriggerMessageReq
- type UnlockConnectorConf
- type UnlockConnectorReq
- type UpdateFirmwareConf
- type UpdateFirmwareReq
Constants ¶
This section is empty.
Variables ¶
View Source
var Validate = validator.New()
Functions ¶
func IsISO8601Date ¶
func IsISO8601Date(fl validator.FieldLevel) bool
Types ¶
type AuthorizationData ¶
type AuthorizeConf ¶
type AuthorizeConf struct {
IdTagInfo *IdTagInfo `json:"idTagInfo" validate:"required"`
}
type AuthorizeReq ¶
type AuthorizeReq struct {
IdTag string `json:"idTag" validate:"required,max=20"`
}
type BootNotificationConf ¶
type BootNotificationReq ¶
type BootNotificationReq struct { ChargeBoxSerialNumber string `json:"chargeBoxSerialNumber,omitempty" validate:"max=25"` ChargePointModel string `json:"chargePointModel" validate:"required,max=20"` ChargePointSerialNumber string `json:"chargePointSerialNumber,omitempty" validate:"max=25"` ChargePointVendor string `json:"chargePointVendor" validate:"required,max=20"` FirmwareVersion string `json:"firmwareVersion,omitempty" validate:"max=50"` Iccid string `json:"iccid,omitempty" validate:"max=20"` Imsi string `json:"imsi,omitempty" validate:"max=20"` MeterSerialNumber string `json:"meterSerialNumber,omitempty" validate:"max=25"` MeterType string `json:"meterType,omitempty" validate:"max=25"` }
type CancelReservationConf ¶
type CancelReservationConf struct {
IdTagInfo IdTagInfo `json:"idTagInfo" validate:"required,CancelReservationStatus"`
}
type CancelReservationReq ¶
type CancelReservationReq struct {
ReservationId int `json:"reservationId" validate:"required"`
}
type ChangeAvailabilityConf ¶
type ChangeAvailabilityConf struct {
Status string `json:"status" validate:"required,AvailabilityStatus"`
}
type ChangeAvailabilityReq ¶
type ChangeAvailabilityReq struct { ConnectorId int `json:"connectorId" validate:"required,gte=0"` Type string `json:"type" validate:"required,AvailabilityType"` }
actions by csms
type ChangeConfigurationConf ¶
type ChangeConfigurationConf struct {
Status string `json:"status" validate:"required,ConfigurationStatus"`
}
type ChangeConfigurationReq ¶
type ChargingProfile ¶
type ChargingProfile struct { ChargingProfileId int `json:"chargingProfileId" validate:"required,gte=0"` TransactionId int `json:"transactionId,omitempty"` StackLevel int `json:"stackLevel" validate:"required,gte=0"` ChargingProfilePurpose string `json:"chargingProfilePurpose" validate:"required,ChargingProfilePurposeType"` ChargingProfileKind string `json:"chargingProfileKind" validate:"required,ChargingProfileKindType"` RecurrencyKind string `json:"recurrencyKind,omitempty" validate:"RecurrencyKindType"` ValidFrom string `json:"validFrom,omitempty" validate:"ISO8601date"` ValidTo string `json:"validTo,omitempty" validate:"ISO8601date"` ChargingSchedule ChargingSchedule `json:"chargingSchedule" validate:"required,dive,required"` }
type ChargingSchedule ¶
type ChargingSchedule struct { Duration int `json:"duration,omitempty"` StartSchedule string `json:"startSchedule,omitempty" validate:"ISO8601date"` ChargingRateUnit string `json:"chargingRateUnit" validate:"required,ChargingRateUnitType"` ChargingSchedulePeriod []ChargingSchedulePeriod `json:"chargingSchedulePeriod" validate:"required,dive,required"` MinChargingRate float32 `json:"minChargingRate,omitempty"` }
type ChargingSchedulePeriod ¶
type ClearCacheConf ¶
type ClearCacheConf struct {
Status string `json:"status" validate:"required,ClearCacheStatus"`
}
type ClearCacheReq ¶
type ClearCacheReq struct{}
type ClearChargingProfileConf ¶
type ClearChargingProfileConf struct {
Status string `json:"status" validate:"required,ClearChargingProfileStatus"`
}
type ClearChargingProfileReq ¶
type ClearChargingProfileReq struct { Id string `json:"id,omitempty"` ConnectorId int `json:"connectorId,omitempty" validate:"gte=0"` ChargingProfilePuropse string `json:"chargingProfilePurpose,omitempty" validate:"ChargingProfilePurpose"` StackLevel int `json:"stackLevel,omitempty" validate:"omitempty,gte=0"` }
type DataTransferConf ¶
type DataTransferReq ¶
type DiagnosticsStatusNotificationConf ¶
type DiagnosticsStatusNotificationConf struct{}
type DiagnosticsStatusNotificationReq ¶
type DiagnosticsStatusNotificationReq struct {
Status string `json:"status" validate:"required,DiagnosticsStatus"`
}
type FirmwareStatusNotificationConf ¶
type FirmwareStatusNotificationConf struct{}
type FirmwareStatusNotificationReq ¶
type FirmwareStatusNotificationReq struct {
Status string `json:"status" validate:"required,FirmwareStatus"`
}
type GetCompositeScheduleConf ¶
type GetCompositeScheduleConf struct { Status string `json:"status" validate:"required,GetCompositeScheduleStatus"` ConnectorId int `json:"connectorId" validate:"required,gte=0"` ScheduleStart string `json:"scheduleStart,omitempty" validate:"ISO8601date"` ChargingSchedule ChargingSchedule `json:"chargingSchedule,omitempty"` }
type GetCompositeScheduleReq ¶
type GetConfigurationConf ¶
type GetConfigurationReq ¶
type GetConfigurationReq struct {
Key []string `json:"key,omitempty" validate:"dive,max=50"`
}
type GetDiagnosticsConf ¶
type GetDiagnosticsConf struct {
FileName string `json:"fileName,omitempty" validate:"max=255"`
}
type GetDiagnosticsReq ¶
type GetDiagnosticsReq struct { Location string `json:"location" validate:"required"` Retries int `json:"retries,omitempty" validate:"gte=0"` RetryInterval int `json:"retryInterval,omitempty" validate:"gte=0"` StartTime string `json:"startTime,omitempty" validate:"ISO8601date"` StopTime string `json:"stopTime,omitempty" validate:"ISO8601date"` }
type GetLocalListVersionConf ¶
type GetLocalListVersionConf struct {
ListVersion int `json:"listVersion" validate:"required,gte=0"`
}
type GetLocalListVersionReq ¶
type GetLocalListVersionReq struct{}
type HeartbeatConf ¶
type HeartbeatConf struct {
CurrentTime string `json:"currentTime" validate:"required,ISO8601date"`
}
type HeartbeatReq ¶
type HeartbeatReq struct { }
type MeterValue ¶
type MeterValue struct { Timestamp string `json:"timestamp" validate:"required,ISO8601date"` SampledValue SampledValue `json:"sampledValue" validate:"required,dive,required"` }
type MeterValuesConf ¶
type MeterValuesConf struct{}
type MeterValuesReq ¶
type MeterValuesReq struct { ConnectorId int `json:"connectorId" validate:"required,gte=0"` TransactionId int `json:"transactionId"` MeterValue MeterValue `json:"meterValue" validate:"required,dive,required"` }
type RemoteStartTransactionConf ¶
type RemoteStartTransactionConf struct {
Status string `json:"status" validate:"required,RemoteStartStopStatus"`
}
type RemoteStartTransactionReq ¶
type RemoteStartTransactionReq struct { ConnectorId int `json:"connectorId,omitempty" validate:"gte=0"` IdTag string `json:"idTag" validate:"required,max=20"` ChargingProfile ChargingProfile `json:"chargingProfile,omitempty" validate:"dive,required"` }
type RemoteStopTransactionConf ¶
type RemoteStopTransactionConf struct {
Status string `json:"status" validate:"required,RemoteStartStopStatus"`
}
type RemoteStopTransactionReq ¶
type RemoteStopTransactionReq struct {
TransactionId int `json:"transactionId" validate:"required"`
}
type ReserveNowConf ¶
type ReserveNowConf struct {
Status string `json:"status" validate:"required,ReservationStatus"`
}
type ReserveNowReq ¶
type ReserveNowReq struct { ConnectorId int `json:"connectorId" validate:"required,gte=0"` ExpiryDate string `json:"expiryDate" validate:"required,ISO8601date"` IdTag string `json:"idTag" validate:"required,max=20"` ParentIdTag string `json:"parentIdTag,omitempty" validate:"max=20"` ReservationId int `json:"reservationId" validate:"required"` }
type ResetConf ¶
type ResetConf struct {
Status string `json:"status" validate:"required,ResetStatus"`
}
type SampledValue ¶
type SampledValue struct { Value string `json:"value" validate:"required"` Context string `json:"context,omitempty" validate:"ReadingContext"` Format string `json:"format,omitempty" validate:"ValueFormat"` Measurand string `json:"measurand,omitempty" validate:"Measurand"` Phase string `json:"phase,omitempty" validate:"Phase"` Location string `json:"location,omitempty" validate:"Location"` Unit string `json:"unit,omitempty" validate:"UnitOfMeasure"` }
type SendLocalListConf ¶
type SendLocalListConf struct {
Status string `json:"status" validate:"required,UpdateStatus"`
}
type SendLocalListReq ¶
type SendLocalListReq struct { ListVersion int `json:"listVersion" validate:"required,gte=0"` LocalAuthorizationList []AuthorizationData `json:"localAuthorizationList,omitempty" validate:"dive,required"` UpdateType string `json:"updateType" validate:"required,UpdateType"` }
type SetChargingProfileConf ¶
type SetChargingProfileConf struct {
Status string `json:"status" validate:"required,ChargingProfileStatus"`
}
type SetChargingProfileReq ¶
type SetChargingProfileReq struct { ConnectorId int `json:"connectorId" validate:"required,gte=0"` ChargingProfile ChargingProfile `json:"chargingProfile" validate:"required,dive,required"` }
type StartTransactionConf ¶
type StartTransactionReq ¶
type StartTransactionReq struct { ConnectorId int `json:"connectorId" validate:"required,gt=0"` IdTag string `json:"idTag" validate:"required,max=20"` MeterStart int `json:"meterStart" validate:"required,gte=0"` ReservationId int `json:"reservationId,omitempty" validate:"omitempty,gt=0"` Timestamp string `json:"timestamp" validate:"required,ISO8601date"` }
type StatusNotificationConf ¶
type StatusNotificationConf struct{}
type StatusNotificationReq ¶
type StatusNotificationReq struct { ConnectorId int `json:"connectorId" validate:"required,gte=0"` ErrorCode string `json:"errorCode" validate:"required,ErrorCode"` Info string `json:"info,omitempty" validate:"max=50"` Status string `json:"status" validate:"required,ChargePointStatus"` Timestamp string `json:"timestamp,omitempty" validate:"ISO8601date"` VendorId string `json:"vendorId,omitempty" validate:"max=255"` VendorErrorCode string `json:"vendorErrorCode,omitempty" validate:"max=50"` }
type StopTransactionConf ¶
type StopTransactionConf struct {
IdTagInfo IdTagInfo `json:"idTagInfo" validate:"required"`
}
type StopTransactionReq ¶
type StopTransactionReq struct { IdTag string `json:"idTag" validate:"required,max=20"` MeterStop int `json:"meterStop" validate:"required"` Timestamp string `json:"timestamp" validate:"required,ISO8601date"` TransactionId int `json:"transactionId" validate:"required"` Reason string `json:"reason,omitempty" validate:"Reason"` TransactionData MeterValue `json:"transactionData,omitempty" validate:"dive,required"` }
type TriggerMessageConf ¶
type TriggerMessageConf struct {
Status string `json:"status" validate:"required,TriggerMessageStatus"`
}
type TriggerMessageReq ¶
type UnlockConnectorConf ¶
type UnlockConnectorConf struct {
Status string `json:"status" validate:"required,UnlockStatus"`
}
type UnlockConnectorReq ¶
type UnlockConnectorReq struct {
ConnectorId int `json:"connectorId" validate:"required,gte=0"`
}
type UpdateFirmwareConf ¶
type UpdateFirmwareConf struct{}
type UpdateFirmwareReq ¶
Click to show internal directories.
Click to hide internal directories.