Documentation ¶
Index ¶
- type ConsumptionPostgresRepository
- func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedDaily(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)
- func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedMonthly(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)
- func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedWeekly(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumptionPostgresRepository ¶
type ConsumptionPostgresRepository struct {
// contains filtered or unexported fields
}
func NewConsumptionPostgresRepository ¶
func NewConsumptionPostgresRepository(baseDB postgres.PostgresDatabase) *ConsumptionPostgresRepository
NewConsumptionPostgresRepository creates a new instance of ConsumptionRepository interface implementation.
func (*ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedDaily ¶
func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedDaily(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)
func (*ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedMonthly ¶
func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedMonthly(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)
func (*ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedWeekly ¶
func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedWeekly(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)
Click to show internal directories.
Click to hide internal directories.