Versions in this module Expand all Collapse all v0 v0.18.0 Mar 12, 2024 v0.17.0 Sep 8, 2023 v0.16.0 May 30, 2022 v0.15.0 Jul 25, 2021 Changes in this version + const CancelReservationFeatureName + const ProfileName + const ReservationStatusUpdateFeatureName + const ReserveNowFeatureName + var Profile = ocpp.NewProfile(ProfileName, CancelReservationFeature{}, ReservationStatusUpdateFeature{}, ...) + type CSMSHandler interface + OnReservationStatusUpdate func(chargingStationID string, request *ReservationStatusUpdateRequest) (resp *ReservationStatusUpdateResponse, err error) + type CancelReservationFeature struct + func (f CancelReservationFeature) GetFeatureName() string + func (f CancelReservationFeature) GetRequestType() reflect.Type + func (f CancelReservationFeature) GetResponseType() reflect.Type + type CancelReservationRequest struct + ReservationID int + func NewCancelReservationRequest(reservationId int) *CancelReservationRequest + func (r CancelReservationRequest) GetFeatureName() string + type CancelReservationResponse struct + Status CancelReservationStatus + StatusInfo *types.StatusInfo + func NewCancelReservationResponse(status CancelReservationStatus) *CancelReservationResponse + func (c CancelReservationResponse) GetFeatureName() string + type CancelReservationStatus string + const CancelReservationStatusAccepted + const CancelReservationStatusRejected + type ChargingStationHandler interface + OnCancelReservation func(request *CancelReservationRequest) (resp *CancelReservationResponse, err error) + OnReserveNow func(request *ReserveNowRequest) (resp *ReserveNowResponse, err error) + type ConnectorType string + const ConnectorType3091P16A + const ConnectorType3091P32A + const ConnectorType3093P16A + const ConnectorType3093P32A + const ConnectorTypeBS1361 + const ConnectorTypeCCS1 + const ConnectorTypeCCS2 + const ConnectorTypeCEE77 + const ConnectorTypeCType1 + const ConnectorTypeCType2 + const ConnectorTypeG105 + const ConnectorTypeOther1PhMax16A + const ConnectorTypeOther1PhOver16A + const ConnectorTypeOther3Ph + const ConnectorTypePan + const ConnectorTypeSType2 + const ConnectorTypeSType3 + const ConnectorTypeTesla + const ConnectorTypeUndetermined + const ConnectorTypeUnknown + const ConnectorTypeWirelessInductive + const ConnectorTypeWirelessResonant + type ReservationStatusUpdateFeature struct + func (f ReservationStatusUpdateFeature) GetFeatureName() string + func (f ReservationStatusUpdateFeature) GetRequestType() reflect.Type + func (f ReservationStatusUpdateFeature) GetResponseType() reflect.Type + type ReservationStatusUpdateRequest struct + ReservationID int + Status ReservationUpdateStatus + func NewReservationStatusUpdateRequest(reservationID int, status ReservationUpdateStatus) *ReservationStatusUpdateRequest + func (r ReservationStatusUpdateRequest) GetFeatureName() string + type ReservationStatusUpdateResponse struct + func NewReservationStatusUpdateResponse() *ReservationStatusUpdateResponse + func (c ReservationStatusUpdateResponse) GetFeatureName() string + type ReservationUpdateStatus string + const ReservationUpdateStatusExpired + const ReservationUpdateStatusRemoved + type ReserveNowFeature struct + func (f ReserveNowFeature) GetFeatureName() string + func (f ReserveNowFeature) GetRequestType() reflect.Type + func (f ReserveNowFeature) GetResponseType() reflect.Type + type ReserveNowRequest struct + ConnectorType ConnectorType + EvseID *int + ExpiryDateTime *types.DateTime + GroupIdToken types.IdTokenType + ID int + IdToken types.IdTokenType + func NewReserveNowRequest(id int, expiryDateTime *types.DateTime, idToken types.IdTokenType) *ReserveNowRequest + func (r ReserveNowRequest) GetFeatureName() string + type ReserveNowResponse struct + Status ReserveNowStatus + StatusInfo *types.StatusInfo + func NewReserveNowResponse(status ReserveNowStatus) *ReserveNowResponse + func (c ReserveNowResponse) GetFeatureName() string + type ReserveNowStatus string + const ReserveNowStatusAccepted + const ReserveNowStatusFaulted + const ReserveNowStatusOccupied + const ReserveNowStatusRejected + const ReserveNowStatusUnavailable