Documentation ¶
Index ¶
- type AggregatedFields
- type AggregatedFieldsByDate
- type ApiInstallation
- type ApiRecord
- type Postgres
- func (p *Postgres) GetAccountHash(user string) (string, error)
- func (p *Postgres) GetActiveCountByDay() (AggregatedFields, error)
- func (p *Postgres) GetActiveInstalls(hours int) ([]ApiInstallation, error)
- func (p *Postgres) GetAllInstalls() ([]ApiInstallation, error)
- func (p *Postgres) GetRecordById(id string) (ApiRecord, error)
- func (p *Postgres) GetRecordsByDay(day string) ([]ApiInstallation, error)
- func (p *Postgres) GetRecordsByUid(uid string, days int) ([]ApiRecord, error)
- func (p *Postgres) GetRecordsGroupedByDay(days int) (RecordsByDateByUid, error)
- func (p *Postgres) Ping() error
- func (p *Postgres) Report(r record.Record, clientIp string) error
- func (p *Postgres) SumByDay(days int, fields []string, uid string) (AggregatedFieldsByDate, error)
- func (p *Postgres) SumByDayMap(days int, field string, uid string) (AggregatedFieldsByDate, error)
- func (p *Postgres) SumByDayValue(days int, field string, uid string) (AggregatedFieldsByDate, error)
- func (p *Postgres) SumOfActiveInstalls(hours int, fields []string) (AggregatedFields, error)
- func (p *Postgres) SumOfActiveInstallsMap(hours int, field string) (AggregatedFields, error)
- func (p *Postgres) SumOfActiveInstallsValue(hours int, field string) (AggregatedFields, error)
- type RecordsByDateByUid
- type RecordsByUid
- type ToUrl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedFields ¶
type AggregatedFieldsByDate ¶
type AggregatedFieldsByDate map[string]AggregatedFields
type ApiInstallation ¶
type Postgres ¶
func NewPostgres ¶
func (*Postgres) GetActiveCountByDay ¶
func (p *Postgres) GetActiveCountByDay() (AggregatedFields, error)
func (*Postgres) GetActiveInstalls ¶
func (p *Postgres) GetActiveInstalls(hours int) ([]ApiInstallation, error)
func (*Postgres) GetAllInstalls ¶
func (p *Postgres) GetAllInstalls() ([]ApiInstallation, error)
func (*Postgres) GetRecordsByDay ¶ added in v0.6.0
func (p *Postgres) GetRecordsByDay(day string) ([]ApiInstallation, error)
func (*Postgres) GetRecordsByUid ¶
func (*Postgres) GetRecordsGroupedByDay ¶
func (p *Postgres) GetRecordsGroupedByDay(days int) (RecordsByDateByUid, error)
func (*Postgres) SumByDayMap ¶
func (*Postgres) SumByDayValue ¶
func (*Postgres) SumOfActiveInstalls ¶
func (p *Postgres) SumOfActiveInstalls(hours int, fields []string) (AggregatedFields, error)
func (*Postgres) SumOfActiveInstallsMap ¶
func (p *Postgres) SumOfActiveInstallsMap(hours int, field string) (AggregatedFields, error)
func (*Postgres) SumOfActiveInstallsValue ¶
func (p *Postgres) SumOfActiveInstallsValue(hours int, field string) (AggregatedFields, error)
type RecordsByDateByUid ¶
type RecordsByDateByUid map[string]RecordsByUid
type RecordsByUid ¶
Click to show internal directories.
Click to hide internal directories.