Documentation ¶
Overview ¶
Package ocpp201 defines handlers for processing OCPP 2.0.1 messages.
Index ¶
- func GetCertificateId(pemData string) (string, error)
- func NewCallMaker(e transport.Emitter) *handlers.OcppCallMaker
- func NewRouter(emitter transport.Emitter, clk clock.PassiveClock, engine store.Engine, ...) transport.MessageHandler
- func StatusNotificationHandler(ctx context.Context, chargeStationId string, request ocpp.Request) (ocpp.Response, error)
- type AuthorizeHandler
- type BootNotificationHandler
- type CertificateSignedResultHandler
- type ChangeAvailabilityResultHandler
- type ClearCacheResultHandler
- type DeleteCertificateResultHandler
- type FirmwareStatusNotificationHandler
- type Get15118EvCertificateHandler
- type GetBaseReportResultHandler
- type GetCertificateStatusHandler
- type GetInstalledCertificateIdsResultHandler
- type GetLocalListVersionResultHandler
- type GetReportResultHandler
- type GetTransactionStatusResultHandler
- type GetVariablesResultHandler
- type HeartbeatHandler
- type InstallCertificateResultHandler
- type LogStatusNotificationHandler
- type MeterValuesHandler
- type NotifyReportHandler
- type RequestStartTransactionResultHandler
- type RequestStopTransactionResultHandler
- type ResetResultHandler
- type SecurityEventNotificationHandler
- type SendLocalListResultHandler
- type SetNetworkProfileResultHandler
- type SetVariablesResultHandler
- type SignCertificateHandler
- type TransactionEventHandler
- type TriggerMessageResultHandler
- type UnlockConnectorResultHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificateId ¶
GetCertificateId returns the SHA-256 thumbprint of the certificate
func NewCallMaker ¶
func NewCallMaker(e transport.Emitter) *handlers.OcppCallMaker
func NewRouter ¶
func NewRouter(emitter transport.Emitter, clk clock.PassiveClock, engine store.Engine, tariffService services.TariffService, certValidationService services.CertificateValidationService, chargeStationCertProvider services.ChargeStationCertificateProvider, contractCertProvider services.ContractCertificateProvider, heartbeatInterval time.Duration, schemaFS fs.FS) transport.MessageHandler
Types ¶
type AuthorizeHandler ¶
type AuthorizeHandler struct { TokenAuthService services.TokenAuthService CertificateValidationService services.CertificateValidationService }
type BootNotificationHandler ¶
type BootNotificationHandler struct { Clock clock.PassiveClock RuntimeDetailsStore store.ChargeStationRuntimeDetailsStore HeartbeatInterval int }
type ChangeAvailabilityResultHandler ¶
type ChangeAvailabilityResultHandler struct{}
type ClearCacheResultHandler ¶
type ClearCacheResultHandler struct{}
type DeleteCertificateResultHandler ¶
type DeleteCertificateResultHandler struct{}
type FirmwareStatusNotificationHandler ¶
type FirmwareStatusNotificationHandler struct{}
type Get15118EvCertificateHandler ¶
type Get15118EvCertificateHandler struct {
ContractCertificateProvider services.ContractCertificateProvider
}
type GetBaseReportResultHandler ¶
type GetBaseReportResultHandler struct{}
type GetCertificateStatusHandler ¶
type GetCertificateStatusHandler struct {
CertificateValidationService services.CertificateValidationService
}
type GetInstalledCertificateIdsResultHandler ¶
type GetInstalledCertificateIdsResultHandler struct{}
type GetLocalListVersionResultHandler ¶
type GetLocalListVersionResultHandler struct{}
type GetReportResultHandler ¶
type GetReportResultHandler struct{}
type GetTransactionStatusResultHandler ¶
type GetTransactionStatusResultHandler struct{}
type GetVariablesResultHandler ¶
type GetVariablesResultHandler struct{}
type HeartbeatHandler ¶
type HeartbeatHandler struct {
Clock clock.PassiveClock
}
type LogStatusNotificationHandler ¶
type LogStatusNotificationHandler struct{}
type MeterValuesHandler ¶
type MeterValuesHandler struct{}
type NotifyReportHandler ¶
type NotifyReportHandler struct{}
type RequestStartTransactionResultHandler ¶
type RequestStartTransactionResultHandler struct{}
type RequestStopTransactionResultHandler ¶
type RequestStopTransactionResultHandler struct{}
type ResetResultHandler ¶
type ResetResultHandler struct{}
type SecurityEventNotificationHandler ¶
type SecurityEventNotificationHandler struct{}
type SendLocalListResultHandler ¶
type SendLocalListResultHandler struct{}
type SetNetworkProfileResultHandler ¶
type SetNetworkProfileResultHandler struct{}
type SignCertificateHandler ¶
type SignCertificateHandler struct { ChargeStationCertificateProvider services.ChargeStationCertificateProvider Store store.Engine }
type TransactionEventHandler ¶
type TransactionEventHandler struct { Store store.Engine TokenAuthService services.TokenAuthService TariffService services.TariffService }
type UnlockConnectorResultHandler ¶
type UnlockConnectorResultHandler struct{}
Source Files ¶
- authorize.go
- boot_notification.go
- certificate_id.go
- certificate_signed_result.go
- change_availability_result.go
- clear_cache.go
- delete_certificate_result.go
- doc.go
- firmware_status_notification.go
- get_15118_ev_certificate.go
- get_base_report_result.go
- get_certificate_status.go
- get_installed_certificate_ids_result.go
- get_local_list_version_result.go
- get_report_result.go
- get_transaction_status_result.go
- get_variables_result.go
- heartbeat.go
- install_certificate_result.go
- log_status_notification.go
- meter_values.go
- notify_report.go
- request_start_transaction_result.go
- request_stop_transaction_result.go
- reset_result.go
- routing.go
- security_event_notification.go
- send_local_list_result.go
- set_network_profile_result.go
- set_variables_result.go
- sign_certificate.go
- status_notification.go
- transaction_event.go
- trigger_message_result.go
- unlock_connector_result.go
Click to show internal directories.
Click to hide internal directories.