Documentation ¶
Index ¶
- func NewTreeService(repoTree storage.TreeRepository, repoSensor storage.SensorRepository, ...) service.TreeService
- type TreeService
- func (s *TreeService) Create(ctx context.Context, treeCreate *entities.TreeCreate) (*entities.Tree, error)
- func (s *TreeService) Delete(ctx context.Context, id int32) error
- func (s *TreeService) GetAll(ctx context.Context) ([]*entities.Tree, error)
- func (s *TreeService) GetByID(ctx context.Context, id int32) (*entities.Tree, error)
- func (s *TreeService) ImportTree(ctx context.Context, trees []*entities.TreeImport) error
- func (s *TreeService) Ready() bool
- func (s *TreeService) Update(ctx context.Context, id int32, tu *entities.TreeUpdate) (*entities.Tree, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTreeService ¶
func NewTreeService( repoTree storage.TreeRepository, repoSensor storage.SensorRepository, repoImage storage.ImageRepository, treeClusterRepo storage.TreeClusterRepository, geoClusterLocator *treecluster.GeoClusterLocator, ) service.TreeService
Types ¶
type TreeService ¶
type TreeService struct { ImageRepo storage.ImageRepository // contains filtered or unexported fields }
func (*TreeService) Create ¶
func (s *TreeService) Create(ctx context.Context, treeCreate *entities.TreeCreate) (*entities.Tree, error)
func (*TreeService) ImportTree ¶
func (s *TreeService) ImportTree(ctx context.Context, trees []*entities.TreeImport) error
func (*TreeService) Ready ¶
func (s *TreeService) Ready() bool
Click to show internal directories.
Click to hide internal directories.