# Functions
NewCommandRequest returns a packet for a raw command to be executed.
NewEventRequest returns an event request for a particular event name and action.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Packets is a map to translate message purposes to their corresponding packets.
# Structs
CommandRequest is used to send a raw command line to the client.
EncryptResponse is sent by the client on connection to deliver the public key.
ErrorResponse is sent by the client when an error occurs during the process of communicating.
EventRequest is sent by the server to request the client to start sending events of a particular type to the server.
Header describes the header of a packet.
Packet is the main struct that describes every packet sent between client and server to communicate.
# Type aliases
CommandResponse is a merely a JSON raw message, because its value depends on what command was executed.
EventResponse is sent by the client.
MessagePurpose is the purpose a JSON message was sent.