treecluster

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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
}

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 (*TreeClusterRepository) Delete

func (r *TreeClusterRepository) Delete(ctx context.Context, id int32) error

func (*TreeClusterRepository) GetAll

func (*TreeClusterRepository) GetAllLatestSensorDataByClusterID added in v1.1.0

func (r *TreeClusterRepository) GetAllLatestSensorDataByClusterID(ctx context.Context, tcID int32) ([]*entities.SensorData, error)

func (*TreeClusterRepository) GetByID

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 (r *TreeClusterRepository) GetCenterPoint(ctx context.Context, tcID int32) (lat, long float64, err error)

func (*TreeClusterRepository) LinkTreesToCluster

func (r *TreeClusterRepository) LinkTreesToCluster(ctx context.Context, treeClusterID int32, treeIDs []int32) error

func (*TreeClusterRepository) Update

func (r *TreeClusterRepository) Update(ctx context.Context, id int32, updateFn func(*entities.TreeCluster) (bool, error)) error

Jump to

Keyboard shortcuts

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