sensor

package
v1.0.1-pre Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLatitude added in v1.1.0

func WithLatitude(lat float64) entities.EntityFunc[entities.Sensor]

func WithLongitude added in v1.1.0

func WithLongitude(long float64) entities.EntityFunc[entities.Sensor]

func WithSensorID added in v1.1.0

func WithSensorID(sensorID string) entities.EntityFunc[entities.Sensor]

Types

type SensorRepository

type SensorRepository struct {
	SensorRepositoryMappers
	// contains filtered or unexported fields
}

func (*SensorRepository) Create

func (*SensorRepository) Delete

func (r *SensorRepository) Delete(ctx context.Context, id string) error

func (*SensorRepository) GetAll

func (r *SensorRepository) GetAll(ctx context.Context) ([]*entities.Sensor, error)

func (*SensorRepository) GetByID

func (r *SensorRepository) GetByID(ctx context.Context, id string) (*entities.Sensor, error)

func (*SensorRepository) GetSensorByStatus

func (r *SensorRepository) GetSensorByStatus(ctx context.Context, status *entities.SensorStatus) ([]*entities.Sensor, error)

func (*SensorRepository) GetSensorDataByID

func (r *SensorRepository) GetSensorDataByID(ctx context.Context, id string) ([]*entities.SensorData, error)

func (*SensorRepository) GetStatusByID

func (r *SensorRepository) GetStatusByID(ctx context.Context, id string) (*entities.SensorStatus, error)

func (*SensorRepository) InsertSensorData

func (r *SensorRepository) InsertSensorData(ctx context.Context, data []*entities.SensorData, id string) ([]*entities.SensorData, error)

func (*SensorRepository) Update

type SensorRepositoryMappers

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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