store

package
v0.0.0-...-c3bed66 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: GPL-3.0 Imports: 6 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 {
	DB *mongo.Database
}

Data stores and retrieves data collection

func (Data) Fetch

func (ds Data) Fetch(ctx context.Context, since, until, offset, limit int64, ids []string) ([]types.Data, error)

Fetch fetches given things data in given time range and sorts it.

func (Data) PerProjectCount

func (ds Data) PerProjectCount(ctx context.Context, projectID string) (map[string]int, error)

PerProjectCount counts number of records for given project per things it returns a map between thing identification and number of records for that thing

Jump to

Keyboard shortcuts

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