treecluster

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTreeClusterService

func NewTreeClusterService(
	treeClusterRepo storage.TreeClusterRepository,
	treeRepo storage.TreeRepository,
	regionRepo storage.RegionRepository,
	locator *GeoClusterLocator,
) service.TreeClusterService

Types

type GeoClusterLocator

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

func NewLocationUpdate

func NewLocationUpdate(clusterRepo storage.TreeClusterRepository, treeRepo storage.TreeRepository, regionRepo storage.RegionRepository) *GeoClusterLocator

func (*GeoClusterLocator) UpdateCluster

func (s *GeoClusterLocator) UpdateCluster(ctx context.Context, clusterID *int32) error

UpdateCluster updates the center point of a cluster based on the center point of its trees

type TreeClusterService

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

func (*TreeClusterService) Create

func (*TreeClusterService) Delete

func (s *TreeClusterService) Delete(ctx context.Context, id int32) error

func (*TreeClusterService) GetAll

func (*TreeClusterService) GetByID

func (*TreeClusterService) Ready

func (s *TreeClusterService) Ready() bool

func (*TreeClusterService) Update

Jump to

Keyboard shortcuts

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