apiservice

package
v0.2.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertService added in v0.2.1

type AlertService struct {
	// contains filtered or unexported fields
}

func NewAlertService added in v0.2.1

func NewAlertService(db db.DB) *AlertService

func (*AlertService) CreateAlert added in v0.2.1

func (a *AlertService) CreateAlert(w http.ResponseWriter, r *http.Request)

func (*AlertService) DeleteAlert added in v0.2.1

func (a *AlertService) DeleteAlert(w http.ResponseWriter, r *http.Request)

func (*AlertService) GetAlerts added in v0.2.1

func (a *AlertService) GetAlerts(w http.ResponseWriter, r *http.Request)

func (*AlertService) UpdateAlert added in v0.2.1

func (a *AlertService) UpdateAlert(w http.ResponseWriter, r *http.Request)

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) GetAttributeList added in v0.2.1

func (a *AttributeService) GetAttributeList(w http.ResponseWriter, r *http.Request)

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) GetDeviceList added in v0.2.1

func (h *DeviceService) GetDeviceList(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 MessageService added in v0.2.1

type MessageService struct {
	// contains filtered or unexported fields
}

func NewMessageService added in v0.2.1

func NewMessageService(db db.DB) *MessageService

func (*MessageService) CreateMessage added in v0.2.1

func (m *MessageService) CreateMessage(w http.ResponseWriter, r *http.Request)

func (*MessageService) DeleteMessage added in v0.2.1

func (m *MessageService) DeleteMessage(w http.ResponseWriter, r *http.Request)

func (*MessageService) GetMessage added in v0.2.1

func (m *MessageService) GetMessage(w http.ResponseWriter, r *http.Request)

func (*MessageService) GetMessages added in v0.2.1

func (m *MessageService) GetMessages(w http.ResponseWriter, r *http.Request)

func (*MessageService) UpdateMessage added in v0.2.1

func (m *MessageService) UpdateMessage(w http.ResponseWriter, r *http.Request)

type OperatorService added in v0.2.1

type OperatorService struct {
	// contains filtered or unexported fields
}

func NewOperatorService added in v0.2.1

func NewOperatorService(db db.DB) *OperatorService

func (*OperatorService) GetOperators added in v0.2.1

func (a *OperatorService) GetOperators(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) GetSensorList added in v0.2.1

func (a *SensorService) GetSensorList(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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL