Documentation ¶
Index ¶
- func NewTreeClusterService(treeClusterRepo storage.TreeClusterRepository, treeRepo storage.TreeRepository, ...) service.TreeClusterService
- type GeoClusterLocator
- type TreeClusterService
- func (s *TreeClusterService) Create(ctx context.Context, tc *domain.TreeClusterCreate) (*domain.TreeCluster, error)
- func (s *TreeClusterService) Delete(ctx context.Context, id int32) error
- func (s *TreeClusterService) GetAll(ctx context.Context) ([]*domain.TreeCluster, error)
- func (s *TreeClusterService) GetByID(ctx context.Context, id int32) (*domain.TreeCluster, error)
- func (s *TreeClusterService) Ready() bool
- func (s *TreeClusterService) Update(ctx context.Context, id int32, tc *domain.TreeClusterUpdate) (*domain.TreeCluster, error)
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 (s *TreeClusterService) Create(ctx context.Context, tc *domain.TreeClusterCreate) (*domain.TreeCluster, error)
func (*TreeClusterService) Delete ¶
func (s *TreeClusterService) Delete(ctx context.Context, id int32) error
func (*TreeClusterService) GetAll ¶
func (s *TreeClusterService) GetAll(ctx context.Context) ([]*domain.TreeCluster, error)
func (*TreeClusterService) GetByID ¶
func (s *TreeClusterService) GetByID(ctx context.Context, id int32) (*domain.TreeCluster, error)
func (*TreeClusterService) Ready ¶
func (s *TreeClusterService) Ready() bool
func (*TreeClusterService) Update ¶
func (s *TreeClusterService) Update(ctx context.Context, id int32, tc *domain.TreeClusterUpdate) (*domain.TreeCluster, error)
Click to show internal directories.
Click to hide internal directories.