package
0.0.0-20241101195016-be2ca6b56628
Repository: https://github.com/glowlabs-org/gca-backend.git
Documentation: pkg.go.dev

# Functions

DeserializeStreamAllDeviceStats will reverse a call to AllDeviceStats.Serialize().
Create a new zip archive writer.
NewGCAServer initializes a new instance of GCAServer and returns either the GCAServer or an error.
NewLogger initializes a new logger.
SetupTestEnvironment will return a fully initialized gca server that is ready to be used.
Same as SetupTestEnvironment except that the GCA keys are already known.

# Constants

The name of the file that will contain the history of AllDeviceStats objects.
Debug level (0).
Error level (3).
Fatal error level (4).
Information level (1).
MaxCapacityBuffer determines how much a solar farm is allowed to exceed its capacity by in a 5 minute period without the report being banned.
The contents of a README file which will be inserted into the archive.
No description provided by the author
Warning level (2).
No description provided by the author
Full year to use for WattTime historical MOER data.

# Variables

Change order of the public files: gca public key, equipment authorization, equipment reports, all device statistics.

# Structs

AllDeviceStats contains aggregate weekly statistics.
AuthorizedServer tracks an authorized GCA server, complete with a signature from the GCA.
OtherServers contains a mutex-protected list of servers that are known to be in use by the GCA.
This struct is used for the GET request.
Define a struct to receive the information from a call to get the balancing authority from WattTime.
WattTime API generic data point type.
No description provided by the author
DeviceStats contains the statistics for one device.
EquipmentMigrationRequest contains the fields that have an order from the GCA to migrate equipment.
No description provided by the author
GCARegistration defines a request from the GCA to register itself on a server.
GCARegistrationResponse defines the response that the server writes after a successful GCA registration.
GCAServer defines the structure for our Glow Certification Agent Server.
Define a struct that contains the response data for the call to the GeoStatsHandler.
Logger holds the configuration for a logger.
MOERData represents the structure of MOER values.
RecentReportsResponse defines the output containing the equipment reports and a signature.
Define a struct to receive the information from the call to get a token from WattTime.

# Type aliases

LogLevel represents the level of logging.