Documentation ¶
Overview ¶
Package ocpp16 defines handlers for processing OCPP 1.6 messages.
Index ¶
- func ConvertToUUID(transactionId int) string
- 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 ChangeConfigurationResultHandler
- type DataTransferAction
- type DataTransferCallMaker
- type DataTransferHandler
- type DataTransferResultHandler
- type HeartbeatHandler
- type MeterValuesHandler
- type SecurityEventNotificationHandler
- type StartTransactionHandler
- type StopTransactionHandler
- type TriggerMessageResultHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToUUID ¶
func NewCallMaker ¶
func NewCallMaker(e transport.Emitter) *handlers.OcppCallMaker
func NewRouter ¶
func NewRouter(emitter transport.Emitter, clk clock.PassiveClock, engine store.Engine, certValidationService services.CertificateValidationService, chargeStationCertProvider services.ChargeStationCertificateProvider, contractCertProvider services.ContractCertificateProvider, heartbeatInterval time.Duration, schemaFS fs.FS) transport.MessageHandler
Types ¶
type AuthorizeHandler ¶
type AuthorizeHandler struct {
TokenStore store.TokenStore
}
type BootNotificationHandler ¶
type BootNotificationHandler struct { Clock clock.PassiveClock RuntimeDetailsStore store.ChargeStationRuntimeDetailsStore SettingsStore store.ChargeStationSettingsStore HeartbeatInterval int }
type ChangeConfigurationResultHandler ¶
type ChangeConfigurationResultHandler struct { SettingsStore store.ChargeStationSettingsStore CallMaker handlers.CallMaker }
type DataTransferAction ¶
type DataTransferCallMaker ¶
type DataTransferCallMaker struct {
// contains filtered or unexported fields
}
func NewDataTransferCallMaker ¶
func NewDataTransferCallMaker(e transport.Emitter) *DataTransferCallMaker
type DataTransferHandler ¶
type DataTransferResultHandler ¶
type HeartbeatHandler ¶
type HeartbeatHandler struct {
Clock clock.PassiveClock
}
type MeterValuesHandler ¶
type MeterValuesHandler struct {
TransactionStore store.TransactionStore
}
type SecurityEventNotificationHandler ¶
type SecurityEventNotificationHandler struct{}
type StartTransactionHandler ¶
type StartTransactionHandler struct { Clock clock.PassiveClock TokenStore store.TokenStore TransactionStore store.TransactionStore }
type StopTransactionHandler ¶
type StopTransactionHandler struct { Clock clock.PassiveClock TokenStore store.TokenStore TransactionStore store.TransactionStore }
type TriggerMessageResultHandler ¶
type TriggerMessageResultHandler struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.