Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeService ¶
type AttributeService struct {
// contains filtered or unexported fields
}
func NewAttributeService ¶
func NewAttributeService(db db.DB) *AttributeService
func (*AttributeService) AddAttribute ¶
func (a *AttributeService) AddAttribute(w http.ResponseWriter, r *http.Request)
AddAttribute adds a new attribute to the database
func (*AttributeService) GetAttributes ¶
func (a *AttributeService) GetAttributes(w http.ResponseWriter, r *http.Request)
Get ALL attributes from the database
func (*AttributeService) UpdateAttribute ¶
func (a *AttributeService) UpdateAttribute(w http.ResponseWriter, r *http.Request)
UpdateAttribute updates an existing attribute in the database
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
func NewConfigService ¶
func NewConfigService(db db.DB) *ConfigService
func (*ConfigService) GetConfigs ¶
func (h *ConfigService) GetConfigs(w http.ResponseWriter, r *http.Request)
func (*ConfigService) UpdateConfigByKeyValuePairs ¶
func (h *ConfigService) UpdateConfigByKeyValuePairs(w http.ResponseWriter, r *http.Request)
type DeviceService ¶
type DeviceService struct {
// contains filtered or unexported fields
}
func NewDeviceService ¶
func NewDeviceService(db db.DB) *DeviceService
func (*DeviceService) CreateDevice ¶
func (h *DeviceService) CreateDevice(w http.ResponseWriter, r *http.Request)
func (*DeviceService) GetDevice ¶
func (h *DeviceService) GetDevice(w http.ResponseWriter, r *http.Request)
func (*DeviceService) UpdateDevice ¶
func (h *DeviceService) UpdateDevice(w http.ResponseWriter, r *http.Request)
type HealthService ¶
type HealthService struct { }
func NewHealthService ¶
func NewHealthService() *HealthService
func (*HealthService) Check ¶
func (h *HealthService) Check(w http.ResponseWriter, r *http.Request)
type LocationService ¶
type LocationService struct {
// contains filtered or unexported fields
}
func NewLocationService ¶
func NewLocationService(db db.DB) *LocationService
func (*LocationService) AddLocation ¶
func (a *LocationService) AddLocation(w http.ResponseWriter, r *http.Request)
func (*LocationService) GetLocation ¶
func (a *LocationService) GetLocation(w http.ResponseWriter, r *http.Request)
func (*LocationService) UpdateLocation ¶
func (a *LocationService) UpdateLocation(w http.ResponseWriter, r *http.Request)
type LoginService ¶
type LoginService struct {
// contains filtered or unexported fields
}
func NewLoginService ¶
func NewLoginService(db db.DB) *LoginService
func (*LoginService) Login ¶
func (l *LoginService) Login(w http.ResponseWriter, r *http.Request)
type SensorService ¶
type SensorService struct {
// contains filtered or unexported fields
}
func NewSensorService ¶
func NewSensorService(db db.DB) *SensorService
func (*SensorService) AddSensor ¶
func (a *SensorService) AddSensor(w http.ResponseWriter, r *http.Request)
func (*SensorService) GetSensor ¶
func (a *SensorService) GetSensor(w http.ResponseWriter, r *http.Request)
func (*SensorService) UpdateSensor ¶
func (a *SensorService) UpdateSensor(w http.ResponseWriter, r *http.Request)
type WeatherService ¶
type WeatherService struct {
// contains filtered or unexported fields
}
func NewWeatherService ¶
func NewWeatherService(db db.DB) *WeatherService
func (*WeatherService) GetOpenWeatherLocation ¶
func (h *WeatherService) GetOpenWeatherLocation(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.