Documentation
¶
Index ¶
- type TreeMappers
- type TreeRepository
- func (r *TreeRepository) Create(ctx context.Context, ...) (*entities.Tree, error)
- func (r *TreeRepository) Delete(ctx context.Context, id int32) error
- func (r *TreeRepository) FindNearestTree(ctx context.Context, latitude, longitude float64) (*entities.Tree, error)
- func (r *TreeRepository) GetAll(ctx context.Context, query entities.TreeQuery) ([]*entities.Tree, int64, error)
- func (r *TreeRepository) GetByCoordinates(ctx context.Context, latitude, longitude float64) (*entities.Tree, error)
- func (r *TreeRepository) GetByID(ctx context.Context, id int32) (*entities.Tree, error)
- func (r *TreeRepository) GetBySensorID(ctx context.Context, id string) (*entities.Tree, error)
- func (r *TreeRepository) GetBySensorIDs(ctx context.Context, ids ...string) ([]*entities.Tree, error)
- func (r *TreeRepository) GetByTreeClusterID(ctx context.Context, id int32) ([]*entities.Tree, error)
- func (r *TreeRepository) GetCount(ctx context.Context, query entities.TreeQuery) (int64, error)
- func (r *TreeRepository) GetSensorByTreeID(ctx context.Context, treeID int32) (*entities.Sensor, error)
- func (r *TreeRepository) GetTreesByIDs(ctx context.Context, ids []int32) ([]*entities.Tree, error)
- func (r *TreeRepository) UnlinkSensorID(ctx context.Context, sensorID string) error
- func (r *TreeRepository) UnlinkTreeClusterID(ctx context.Context, treeClusterID int32) error
- func (r *TreeRepository) Update(ctx context.Context, id int32, ...) (*entities.Tree, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TreeMappers ¶
type TreeMappers struct {
// contains filtered or unexported fields
}
func NewTreeRepositoryMappers ¶
func NewTreeRepositoryMappers( tMapper imgMapper.InternalTreeRepoMapper, sMapper imgMapper.InternalSensorRepoMapper, tcMapper imgMapper.InternalTreeClusterRepoMapper, ) TreeMappers
type TreeRepository ¶
type TreeRepository struct { TreeMappers // contains filtered or unexported fields }
func NewTreeRepository ¶
func NewTreeRepository(s *store.Store, mappers TreeMappers) *TreeRepository
func (*TreeRepository) Delete ¶
func (r *TreeRepository) Delete(ctx context.Context, id int32) error
func (*TreeRepository) FindNearestTree ¶ added in v1.1.0
func (*TreeRepository) GetByCoordinates ¶
func (*TreeRepository) GetBySensorID ¶ added in v1.1.0
func (*TreeRepository) GetBySensorIDs ¶ added in v1.1.0
func (*TreeRepository) GetByTreeClusterID ¶
func (*TreeRepository) GetSensorByTreeID ¶
func (*TreeRepository) GetTreesByIDs ¶
func (*TreeRepository) UnlinkSensorID ¶ added in v1.1.0
func (r *TreeRepository) UnlinkSensorID(ctx context.Context, sensorID string) error
func (*TreeRepository) UnlinkTreeClusterID ¶
func (r *TreeRepository) UnlinkTreeClusterID(ctx context.Context, treeClusterID int32) error
Click to show internal directories.
Click to hide internal directories.