tree

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: 10 Imported by: 0

Documentation

Index

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) Delete

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

func (*TreeService) GetAll

func (s *TreeService) GetAll(ctx context.Context) ([]*entities.Tree, error)

func (*TreeService) GetByID

func (s *TreeService) GetByID(ctx context.Context, id int32) (*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

func (*TreeService) Update

func (s *TreeService) Update(ctx context.Context, id int32, tu *entities.TreeUpdate) (*entities.Tree, error)

Jump to

Keyboard shortcuts

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