data

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

func New

func New(pool *pgxpool.Pool) *Data

func (*Data) Add

func (d *Data) Add(data []domain.Data) error

func (*Data) Clear

func (d *Data) Clear(bucketId uint64, of time.Time)

func (*Data) Count added in v0.1.13

func (d *Data) Count(bucketId uint64) (int64, error)

func (*Data) CountAll added in v0.1.13

func (d *Data) CountAll() (map[uint64]int64, error)

func (*Data) Create

func (d *Data) Create(bucketId uint64)

func (*Data) Find

func (d *Data) Find(data *dto.DataSelect) []domain.Data

func (*Data) Select

func (d *Data) Select(bucketId uint64, from, to time.Time) []domain.Data

Jump to

Keyboard shortcuts

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