client

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CP

type CP struct{ *cp.Client }

CP wraps *cp.Client with typed send methods for messages a charge point sends to the CSMS.

func NewCP

func NewCP(c *cp.Client) CP

NewCP wraps c so its CP->CSMS messages can be sent as methods.

func (CP) Authorize

Authorize sends a Authorize request from the charge point to the CSMS.

func (CP) AuthorizeAsync

func (c CP) AuthorizeAsync(ctx context.Context, req messages.AuthorizeRequest, cb func(messages.AuthorizeResponse, error)) error

AuthorizeAsync sends a Authorize request without blocking, delivering the response to cb.

func (CP) BootNotification

BootNotification sends a BootNotification request from the charge point to the CSMS.

func (CP) BootNotificationAsync

func (c CP) BootNotificationAsync(ctx context.Context, req messages.BootNotificationRequest, cb func(messages.BootNotificationResponse, error)) error

BootNotificationAsync sends a BootNotification request without blocking, delivering the response to cb.

func (CP) DataTransfer

DataTransfer sends a DataTransfer request from the charge point to the CSMS.

func (CP) DataTransferAsync

func (c CP) DataTransferAsync(ctx context.Context, req messages.DataTransferRequest, cb func(messages.DataTransferResponse, error)) error

DataTransferAsync sends a DataTransfer request without blocking, delivering the response to cb.

func (CP) DiagnosticsStatusNotification

DiagnosticsStatusNotification sends a DiagnosticsStatusNotification request from the charge point to the CSMS.

func (CP) DiagnosticsStatusNotificationAsync

DiagnosticsStatusNotificationAsync sends a DiagnosticsStatusNotification request without blocking, delivering the response to cb.

func (CP) FirmwareStatusNotification

FirmwareStatusNotification sends a FirmwareStatusNotification request from the charge point to the CSMS.

func (CP) FirmwareStatusNotificationAsync

FirmwareStatusNotificationAsync sends a FirmwareStatusNotification request without blocking, delivering the response to cb.

func (CP) Heartbeat

Heartbeat sends a Heartbeat request from the charge point to the CSMS.

func (CP) HeartbeatAsync

func (c CP) HeartbeatAsync(ctx context.Context, req messages.HeartbeatRequest, cb func(messages.HeartbeatResponse, error)) error

HeartbeatAsync sends a Heartbeat request without blocking, delivering the response to cb.

func (CP) LogStatusNotification

LogStatusNotification sends a LogStatusNotification request from the charge point to the CSMS.

func (CP) LogStatusNotificationAsync

func (c CP) LogStatusNotificationAsync(ctx context.Context, req messages.LogStatusNotificationRequest, cb func(messages.LogStatusNotificationResponse, error)) error

LogStatusNotificationAsync sends a LogStatusNotification request without blocking, delivering the response to cb.

func (CP) MeterValues

MeterValues sends a MeterValues request from the charge point to the CSMS.

func (CP) MeterValuesAsync

func (c CP) MeterValuesAsync(ctx context.Context, req messages.MeterValuesRequest, cb func(messages.MeterValuesResponse, error)) error

MeterValuesAsync sends a MeterValues request without blocking, delivering the response to cb.

func (CP) SecurityEventNotification

SecurityEventNotification sends a SecurityEventNotification request from the charge point to the CSMS.

func (CP) SecurityEventNotificationAsync

SecurityEventNotificationAsync sends a SecurityEventNotification request without blocking, delivering the response to cb.

func (CP) SignCertificate

SignCertificate sends a SignCertificate request from the charge point to the CSMS.

func (CP) SignCertificateAsync

func (c CP) SignCertificateAsync(ctx context.Context, req messages.SignCertificateRequest, cb func(messages.SignCertificateResponse, error)) error

SignCertificateAsync sends a SignCertificate request without blocking, delivering the response to cb.

func (CP) SignedFirmwareStatusNotification

SignedFirmwareStatusNotification sends a SignedFirmwareStatusNotification request from the charge point to the CSMS.

func (CP) SignedFirmwareStatusNotificationAsync

SignedFirmwareStatusNotificationAsync sends a SignedFirmwareStatusNotification request without blocking, delivering the response to cb.

func (CP) StartTransaction

StartTransaction sends a StartTransaction request from the charge point to the CSMS.

func (CP) StartTransactionAsync

func (c CP) StartTransactionAsync(ctx context.Context, req messages.StartTransactionRequest, cb func(messages.StartTransactionResponse, error)) error

StartTransactionAsync sends a StartTransaction request without blocking, delivering the response to cb.

func (CP) StatusNotification

StatusNotification sends a StatusNotification request from the charge point to the CSMS.

func (CP) StatusNotificationAsync

func (c CP) StatusNotificationAsync(ctx context.Context, req messages.StatusNotificationRequest, cb func(messages.StatusNotificationResponse, error)) error

StatusNotificationAsync sends a StatusNotification request without blocking, delivering the response to cb.

func (CP) StopTransaction

StopTransaction sends a StopTransaction request from the charge point to the CSMS.

func (CP) StopTransactionAsync

func (c CP) StopTransactionAsync(ctx context.Context, req messages.StopTransactionRequest, cb func(messages.StopTransactionResponse, error)) error

StopTransactionAsync sends a StopTransaction request without blocking, delivering the response to cb.

type CSMS

type CSMS struct{ *csms.Conn }

CSMS wraps *csms.Conn with typed send methods for messages a CSMS sends to a connected charge point.

func NewCSMS

func NewCSMS(c *csms.Conn) CSMS

NewCSMS wraps c so its CSMS->CP messages can be sent as methods.

func (CSMS) CancelReservation

CancelReservation sends a CancelReservation request from the CSMS to the charge point.

func (CSMS) CancelReservationAsync

func (c CSMS) CancelReservationAsync(ctx context.Context, req messages.CancelReservationRequest, cb func(messages.CancelReservationResponse, error)) error

CancelReservationAsync sends a CancelReservation request without blocking, delivering the response to cb.

func (CSMS) CertificateSigned

CertificateSigned sends a CertificateSigned request from the CSMS to the charge point.

func (CSMS) CertificateSignedAsync

func (c CSMS) CertificateSignedAsync(ctx context.Context, req messages.CertificateSignedRequest, cb func(messages.CertificateSignedResponse, error)) error

CertificateSignedAsync sends a CertificateSigned request without blocking, delivering the response to cb.

func (CSMS) ChangeAvailability

ChangeAvailability sends a ChangeAvailability request from the CSMS to the charge point.

func (CSMS) ChangeAvailabilityAsync

func (c CSMS) ChangeAvailabilityAsync(ctx context.Context, req messages.ChangeAvailabilityRequest, cb func(messages.ChangeAvailabilityResponse, error)) error

ChangeAvailabilityAsync sends a ChangeAvailability request without blocking, delivering the response to cb.

func (CSMS) ChangeConfiguration

ChangeConfiguration sends a ChangeConfiguration request from the CSMS to the charge point.

func (CSMS) ChangeConfigurationAsync

func (c CSMS) ChangeConfigurationAsync(ctx context.Context, req messages.ChangeConfigurationRequest, cb func(messages.ChangeConfigurationResponse, error)) error

ChangeConfigurationAsync sends a ChangeConfiguration request without blocking, delivering the response to cb.

func (CSMS) ClearCache

ClearCache sends a ClearCache request from the CSMS to the charge point.

func (CSMS) ClearCacheAsync

func (c CSMS) ClearCacheAsync(ctx context.Context, req messages.ClearCacheRequest, cb func(messages.ClearCacheResponse, error)) error

ClearCacheAsync sends a ClearCache request without blocking, delivering the response to cb.

func (CSMS) ClearChargingProfile

ClearChargingProfile sends a ClearChargingProfile request from the CSMS to the charge point.

func (CSMS) ClearChargingProfileAsync

func (c CSMS) ClearChargingProfileAsync(ctx context.Context, req messages.ClearChargingProfileRequest, cb func(messages.ClearChargingProfileResponse, error)) error

ClearChargingProfileAsync sends a ClearChargingProfile request without blocking, delivering the response to cb.

func (CSMS) DataTransfer

DataTransfer sends a DataTransfer request from the CSMS to the charge point.

func (CSMS) DataTransferAsync

func (c CSMS) DataTransferAsync(ctx context.Context, req messages.DataTransferRequest, cb func(messages.DataTransferResponse, error)) error

DataTransferAsync sends a DataTransfer request without blocking, delivering the response to cb.

func (CSMS) DeleteCertificate

DeleteCertificate sends a DeleteCertificate request from the CSMS to the charge point.

func (CSMS) DeleteCertificateAsync

func (c CSMS) DeleteCertificateAsync(ctx context.Context, req messages.DeleteCertificateRequest, cb func(messages.DeleteCertificateResponse, error)) error

DeleteCertificateAsync sends a DeleteCertificate request without blocking, delivering the response to cb.

func (CSMS) ExtendedTriggerMessage

ExtendedTriggerMessage sends a ExtendedTriggerMessage request from the CSMS to the charge point.

func (CSMS) ExtendedTriggerMessageAsync

ExtendedTriggerMessageAsync sends a ExtendedTriggerMessage request without blocking, delivering the response to cb.

func (CSMS) GetCompositeSchedule

GetCompositeSchedule sends a GetCompositeSchedule request from the CSMS to the charge point.

func (CSMS) GetCompositeScheduleAsync

func (c CSMS) GetCompositeScheduleAsync(ctx context.Context, req messages.GetCompositeScheduleRequest, cb func(messages.GetCompositeScheduleResponse, error)) error

GetCompositeScheduleAsync sends a GetCompositeSchedule request without blocking, delivering the response to cb.

func (CSMS) GetConfiguration

GetConfiguration sends a GetConfiguration request from the CSMS to the charge point.

func (CSMS) GetConfigurationAsync

func (c CSMS) GetConfigurationAsync(ctx context.Context, req messages.GetConfigurationRequest, cb func(messages.GetConfigurationResponse, error)) error

GetConfigurationAsync sends a GetConfiguration request without blocking, delivering the response to cb.

func (CSMS) GetDiagnostics

GetDiagnostics sends a GetDiagnostics request from the CSMS to the charge point.

func (CSMS) GetDiagnosticsAsync

func (c CSMS) GetDiagnosticsAsync(ctx context.Context, req messages.GetDiagnosticsRequest, cb func(messages.GetDiagnosticsResponse, error)) error

GetDiagnosticsAsync sends a GetDiagnostics request without blocking, delivering the response to cb.

func (CSMS) GetInstalledCertificateIds

GetInstalledCertificateIds sends a GetInstalledCertificateIds request from the CSMS to the charge point.

func (CSMS) GetInstalledCertificateIdsAsync

GetInstalledCertificateIdsAsync sends a GetInstalledCertificateIds request without blocking, delivering the response to cb.

func (CSMS) GetLocalListVersion

GetLocalListVersion sends a GetLocalListVersion request from the CSMS to the charge point.

func (CSMS) GetLocalListVersionAsync

func (c CSMS) GetLocalListVersionAsync(ctx context.Context, req messages.GetLocalListVersionRequest, cb func(messages.GetLocalListVersionResponse, error)) error

GetLocalListVersionAsync sends a GetLocalListVersion request without blocking, delivering the response to cb.

func (CSMS) GetLog

GetLog sends a GetLog request from the CSMS to the charge point.

func (CSMS) GetLogAsync

func (c CSMS) GetLogAsync(ctx context.Context, req messages.GetLogRequest, cb func(messages.GetLogResponse, error)) error

GetLogAsync sends a GetLog request without blocking, delivering the response to cb.

func (CSMS) InstallCertificate

InstallCertificate sends a InstallCertificate request from the CSMS to the charge point.

func (CSMS) InstallCertificateAsync

func (c CSMS) InstallCertificateAsync(ctx context.Context, req messages.InstallCertificateRequest, cb func(messages.InstallCertificateResponse, error)) error

InstallCertificateAsync sends a InstallCertificate request without blocking, delivering the response to cb.

func (CSMS) RemoteStartTransaction

RemoteStartTransaction sends a RemoteStartTransaction request from the CSMS to the charge point.

func (CSMS) RemoteStartTransactionAsync

RemoteStartTransactionAsync sends a RemoteStartTransaction request without blocking, delivering the response to cb.

func (CSMS) RemoteStopTransaction

RemoteStopTransaction sends a RemoteStopTransaction request from the CSMS to the charge point.

func (CSMS) RemoteStopTransactionAsync

RemoteStopTransactionAsync sends a RemoteStopTransaction request without blocking, delivering the response to cb.

func (CSMS) ReserveNow

ReserveNow sends a ReserveNow request from the CSMS to the charge point.

func (CSMS) ReserveNowAsync

func (c CSMS) ReserveNowAsync(ctx context.Context, req messages.ReserveNowRequest, cb func(messages.ReserveNowResponse, error)) error

ReserveNowAsync sends a ReserveNow request without blocking, delivering the response to cb.

func (CSMS) Reset

Reset sends a Reset request from the CSMS to the charge point.

func (CSMS) ResetAsync

func (c CSMS) ResetAsync(ctx context.Context, req messages.ResetRequest, cb func(messages.ResetResponse, error)) error

ResetAsync sends a Reset request without blocking, delivering the response to cb.

func (CSMS) SendLocalList

SendLocalList sends a SendLocalList request from the CSMS to the charge point.

func (CSMS) SendLocalListAsync

func (c CSMS) SendLocalListAsync(ctx context.Context, req messages.SendLocalListRequest, cb func(messages.SendLocalListResponse, error)) error

SendLocalListAsync sends a SendLocalList request without blocking, delivering the response to cb.

func (CSMS) SetChargingProfile

SetChargingProfile sends a SetChargingProfile request from the CSMS to the charge point.

func (CSMS) SetChargingProfileAsync

func (c CSMS) SetChargingProfileAsync(ctx context.Context, req messages.SetChargingProfileRequest, cb func(messages.SetChargingProfileResponse, error)) error

SetChargingProfileAsync sends a SetChargingProfile request without blocking, delivering the response to cb.

func (CSMS) SignedUpdateFirmware

SignedUpdateFirmware sends a SignedUpdateFirmware request from the CSMS to the charge point.

func (CSMS) SignedUpdateFirmwareAsync

func (c CSMS) SignedUpdateFirmwareAsync(ctx context.Context, req messages.SignedUpdateFirmwareRequest, cb func(messages.SignedUpdateFirmwareResponse, error)) error

SignedUpdateFirmwareAsync sends a SignedUpdateFirmware request without blocking, delivering the response to cb.

func (CSMS) TriggerMessage

TriggerMessage sends a TriggerMessage request from the CSMS to the charge point.

func (CSMS) TriggerMessageAsync

func (c CSMS) TriggerMessageAsync(ctx context.Context, req messages.TriggerMessageRequest, cb func(messages.TriggerMessageResponse, error)) error

TriggerMessageAsync sends a TriggerMessage request without blocking, delivering the response to cb.

func (CSMS) UnlockConnector

UnlockConnector sends a UnlockConnector request from the CSMS to the charge point.

func (CSMS) UnlockConnectorAsync

func (c CSMS) UnlockConnectorAsync(ctx context.Context, req messages.UnlockConnectorRequest, cb func(messages.UnlockConnectorResponse, error)) error

UnlockConnectorAsync sends a UnlockConnector request without blocking, delivering the response to cb.

func (CSMS) UpdateFirmware

UpdateFirmware sends a UpdateFirmware request from the CSMS to the charge point.

func (CSMS) UpdateFirmwareAsync

func (c CSMS) UpdateFirmwareAsync(ctx context.Context, req messages.UpdateFirmwareRequest, cb func(messages.UpdateFirmwareResponse, error)) error

UpdateFirmwareAsync sends a UpdateFirmware request without blocking, delivering the response to cb.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL