# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
Creates a new Client endpoint.
Creates a simple struct implementing ClientState, to be used by client/server dispatchers.
NewDefaultClientDispatcher creates a new DefaultClientDispatcher struct.
NewDefaultServerDispatcher creates a new DefaultServerDispatcher struct.
NewFIFOClientQueue creates a new FIFOClientQueue with the given capacity.
NewFIFOQueueMap creates a new FIFOQueueMap, which will automatically create queues with the specified capacity.
Creates a new Server endpoint.
Creates a simple struct implementing ServerState, to be used by server dispatchers.
Unmarshals an OCPP-J json object from a JSON string.
Unmarshals an OCPP-J json object from a byte array.
Allows an instance of ocppj to configure if the message is Marshaled by escaping special caracters like "<", ">", "&" etc For more info https://pkg.go.dev/encoding/json#HTMLEscape.
Sets a custom Logger implementation, allowing the ocpp-j package to log events.
SetMessageIdGenerator sets a lambda function for generating unique IDs for new messages.
Allows to enable/disable automatic validation for OCPP messages (this includes the field constraints defined for every request/response).
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
Payload for Action is syntactically incorrect or not conform the PDU structure for Action.
Payload for Action is syntactically incorrect.
Any other error not covered by the previous ones.
An internal error occurred and the receiver was not able to process the requested Action successfully.
A message with an Message Type Number received that is not supported by this implementation.
Requested Action is not known by receiver.
Requested Action is recognized but not supported by the receiver.
Payload for Action is syntactically correct but at least one of the fields violates occurrence constraints.
Payload is syntactically correct but at least one field contains an invalid value.
Payload for Action is incomplete.
During the processing of Action a security issue occurred preventing receiver from completing the Action successfully.
Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g.
# Variables
No description provided by the author
The validator, used for validating incoming/outgoing OCPP messages.
# Structs
An OCPP-J Call message, containing an OCPP Request.
An OCPP-J CallError message, containing an OCPP Error.
An OCPP-J CallResult message, containing an OCPP Response.
The endpoint initiating the connection to an OCPP server, in an OCPP-J topology.
DefaultClientDispatcher is a default implementation of the ClientDispatcher interface.
DefaultServerDispatcher is a default implementation of the ServerDispatcher interface.
An OCPP-J endpoint is one of the two entities taking part in the communication.
FIFOClientQueue is a default queue implementation.
FIFOQueueMap is a default implementation of ServerQueueMap.
RequestBundle is a convenience struct for passing a call object struct and the raw byte data into the queue containing outgoing requests.
The endpoint waiting for incoming connections from OCPP clients, in an OCPP-J topology.
# Interfaces
ClientDispatcher contains the state and logic for handling outgoing messages on a client endpoint.
Contains the pending request state for messages, associated to a single client-server channel.
An OCPP-J message.
RequestQueue can be arbitrarily implemented, as long as it conforms to the Queue interface.
ServerDispatcher contains the state and logic for handling outgoing messages on a server endpoint.
ServerQueueMap defines the interface for managing client request queues.
Contains the pending request state for messages associated to all client-server channels.
# Type aliases
Handler function to be invoked when a request gets canceled (either due to timeout or to other external factors).
No description provided by the author
No description provided by the author
No description provided by the author
MessageType identifies the type of message exchanged between two OCPP endpoints.
No description provided by the author
No description provided by the author