package
0.0.0-20241101195016-be2ca6b56628
Repository: https://github.com/glowlabs-org/gca-backend.git
Documentation: pkg.go.dev
# Functions
NewClient will return a new client that is running smoothly.
This is a function for creating the server map and saving it to disk.
UntrustedDeserializeGCAServerMap will deserialize an untrusted array into a GCA server map.
# Constants
The file that contains the authorization for the client, signed by the GCA.
The file that contains the keypair for the client, authorized by the GCA.
CTSettingsFile contains the current transformer multiplier.
No description provided by the author
EnergyFile is the file used by the monitoring equipment to write the total amount of energy that was measured in each timeslot.
CTMultiplier is the multiplier that we use on the current transformer to correctly normalize the readings from the current transformer.
Event log constants.
No description provided by the author
No description provided by the author
The file that contains the public key of the GCA.
GCAServerMapFile contains the list of servers that the GCA has online.
HistoryFile contains all of the historic power readings for this solar installation.
LastReportFile is a file that contains the last successful udp report sent time.
LastSyncFile is a file that contains the last successful sync time.
ShortIDFile contains the ShortID of the device, which is useful for compressing communications with the GCA servers.
UDPSleepSyncTime sets the amount of time that the system sleeps between each UDP packet that gets sent.
# Structs
The stateful object for the client.
Represents one row of data from the energy file.
The object used to store GCA servers on disk.