Documentation
¶
Index ¶
- func NewTreeClusterService(treeClusterRepo storage.TreeClusterRepository, treeRepo storage.TreeRepository, ...) service.TreeClusterService
- type TreeClusterService
- func (s *TreeClusterService) Create(ctx context.Context, createTc *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) HandleCreateTree(ctx context.Context, event *entities.EventCreateTree) error
- func (s *TreeClusterService) HandleDeleteTree(ctx context.Context, event *entities.EventDeleteTree) error
- func (s *TreeClusterService) HandleNewSensorData(ctx context.Context, event *entities.EventNewSensorData) error
- func (s *TreeClusterService) HandleUpdateTree(ctx context.Context, event *entities.EventUpdateTree) error
- func (s *TreeClusterService) HandleUpdateWateringPlan(ctx context.Context, event *entities.EventUpdateWateringPlan) error
- func (s *TreeClusterService) Ready() bool
- func (s *TreeClusterService) Update(ctx context.Context, id int32, tcUpdate *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, eventManager *worker.EventManager, ) service.TreeClusterService
Types ¶
type TreeClusterService ¶
type TreeClusterService struct {
// contains filtered or unexported fields
}
func (*TreeClusterService) Create ¶
func (s *TreeClusterService) Create(ctx context.Context, createTc *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) HandleCreateTree ¶ added in v1.1.0
func (s *TreeClusterService) HandleCreateTree(ctx context.Context, event *entities.EventCreateTree) error
func (*TreeClusterService) HandleDeleteTree ¶ added in v1.1.0
func (s *TreeClusterService) HandleDeleteTree(ctx context.Context, event *entities.EventDeleteTree) error
func (*TreeClusterService) HandleNewSensorData ¶ added in v1.1.0
func (s *TreeClusterService) HandleNewSensorData(ctx context.Context, event *entities.EventNewSensorData) error
func (*TreeClusterService) HandleUpdateTree ¶ added in v1.1.0
func (s *TreeClusterService) HandleUpdateTree(ctx context.Context, event *entities.EventUpdateTree) error
func (*TreeClusterService) HandleUpdateWateringPlan ¶ added in v1.1.0
func (s *TreeClusterService) HandleUpdateWateringPlan(ctx context.Context, event *entities.EventUpdateWateringPlan) error
func (*TreeClusterService) Ready ¶
func (s *TreeClusterService) Ready() bool
func (*TreeClusterService) Update ¶
func (s *TreeClusterService) Update(ctx context.Context, id int32, tcUpdate *domain.TreeClusterUpdate) (*domain.TreeCluster, error)
Click to show internal directories.
Click to hide internal directories.