Documentation
¶
Index ¶
- func NewTreeClusterRepository(s *store.Store, mappers TreeClusterMappers) storage.TreeClusterRepository
- type TreeClusterMappers
- type TreeClusterRepository
- func (r *TreeClusterRepository) Archive(ctx context.Context, id int32) error
- func (r *TreeClusterRepository) Create(ctx context.Context, createFn func(*entities.TreeCluster) (bool, error)) (*entities.TreeCluster, error)
- func (r *TreeClusterRepository) Delete(ctx context.Context, id int32) error
- func (r *TreeClusterRepository) GetAll(ctx context.Context) ([]*entities.TreeCluster, error)
- func (r *TreeClusterRepository) GetAllLatestSensorDataByClusterID(ctx context.Context, tcID int32) ([]*entities.SensorData, error)
- func (r *TreeClusterRepository) GetByID(ctx context.Context, id int32) (*entities.TreeCluster, error)
- func (r *TreeClusterRepository) GetByIDs(ctx context.Context, ids []int32) ([]*entities.TreeCluster, error)
- func (r *TreeClusterRepository) GetCenterPoint(ctx context.Context, tcID int32) (lat, long float64, err error)
- func (r *TreeClusterRepository) LinkTreesToCluster(ctx context.Context, treeClusterID int32, treeIDs []int32) error
- func (r *TreeClusterRepository) Update(ctx context.Context, id int32, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTreeClusterRepository ¶
func NewTreeClusterRepository(s *store.Store, mappers TreeClusterMappers) storage.TreeClusterRepository
Types ¶
type TreeClusterMappers ¶
type TreeClusterMappers struct {
// contains filtered or unexported fields
}
func NewTreeClusterRepositoryMappers ¶
func NewTreeClusterRepositoryMappers( tcMapper mapper.InternalTreeClusterRepoMapper, sMapper mapper.InternalSensorRepoMapper, rMapper mapper.InternalRegionRepoMapper, tMapper mapper.InternalTreeRepoMapper, ) TreeClusterMappers
type TreeClusterRepository ¶
type TreeClusterRepository struct { TreeClusterMappers // contains filtered or unexported fields }
func (*TreeClusterRepository) Archive ¶
func (r *TreeClusterRepository) Archive(ctx context.Context, id int32) error
func (*TreeClusterRepository) Create ¶
func (r *TreeClusterRepository) Create(ctx context.Context, createFn func(*entities.TreeCluster) (bool, error)) (*entities.TreeCluster, error)
func (*TreeClusterRepository) Delete ¶
func (r *TreeClusterRepository) Delete(ctx context.Context, id int32) error
func (*TreeClusterRepository) GetAll ¶
func (r *TreeClusterRepository) GetAll(ctx context.Context) ([]*entities.TreeCluster, error)
func (*TreeClusterRepository) GetAllLatestSensorDataByClusterID ¶ added in v1.1.0
func (r *TreeClusterRepository) GetAllLatestSensorDataByClusterID(ctx context.Context, tcID int32) ([]*entities.SensorData, error)
func (*TreeClusterRepository) GetByID ¶
func (r *TreeClusterRepository) GetByID(ctx context.Context, id int32) (*entities.TreeCluster, error)
func (*TreeClusterRepository) GetByIDs ¶ added in v1.1.0
func (r *TreeClusterRepository) GetByIDs(ctx context.Context, ids []int32) ([]*entities.TreeCluster, error)
func (*TreeClusterRepository) GetCenterPoint ¶ added in v1.1.0
func (*TreeClusterRepository) LinkTreesToCluster ¶
Click to show internal directories.
Click to hide internal directories.