Documentation
¶
Index ¶
- type DB
- type RoomService
- type SensorService
- func (s *SensorService) CreateSensor(ctx context.Context, sensor *goblin.Sensor) error
- func (s *SensorService) DeleteSensor(ctx context.Context, id string) error
- func (s *SensorService) SensorById(ctx context.Context, id string) (sensor *goblin.Sensor, err error)
- func (s *SensorService) UpdateRoom(ctx context.Context, id string, roomId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomService ¶
type RoomService struct {
// contains filtered or unexported fields
}
func NewRoomService ¶
func NewRoomService(db *DB) *RoomService
func (*RoomService) CreateRoom ¶
func (*RoomService) DeleteRoom ¶
func (s *RoomService) DeleteRoom(ctx context.Context, id string) error
type SensorService ¶
type SensorService struct {
// contains filtered or unexported fields
}
func NewSensorService ¶
func NewSensorService(db *DB) *SensorService
func (*SensorService) CreateSensor ¶
func (*SensorService) DeleteSensor ¶
func (s *SensorService) DeleteSensor(ctx context.Context, id string) error
func (*SensorService) SensorById ¶
func (*SensorService) UpdateRoom ¶
Click to show internal directories.
Click to hide internal directories.