Documentation
¶
Index ¶
- type Server
- func (s *Server) GetInverter(c *gin.Context)
- func (s *Server) GetInverters(c *gin.Context)
- func (s *Server) Initialize(DBHost, DBPort, DBUser, DBPassword, DBDatabase, mode string) error
- func (s *Server) RefreshInverterCollection(ctx context.Context) error
- func (s *Server) RefreshTelemetryDataCollection(ctx context.Context) error
- func (s *Server) Run(servicePort string) error
- func (s *Server) SetupInverterCollection(ctx context.Context) error
- func (s *Server) SetupTelemetryDataCollection(ctx context.Context) error
- func (s *Server) Terminate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server : the base elements that make the service
func (*Server) GetInverter ¶
GetInverter : handler for getting a single inverter from the DB
func (*Server) GetInverters ¶
GetInverters : handler for listing all the inverters in the DB
func (*Server) Initialize ¶
Initialize : prepares the service to launch
func (*Server) RefreshInverterCollection ¶
RefreshInverterCollection : deletes all the inverters in the DB
func (*Server) RefreshTelemetryDataCollection ¶
RefreshTelemetryDataCollection : deletes all the telemetry data in the DB
func (*Server) SetupInverterCollection ¶
SetupInverterCollection : setups the inverter collection with constraints and rules
func (*Server) SetupTelemetryDataCollection ¶
SetupTelemetryDataCollection : setups the telemetry data collection with constraints and rules
Click to show internal directories.
Click to hide internal directories.