Versions in this module Expand all Collapse all v0 v0.14.0 Jan 25, 2024 Changes in this version + type CountrySummary struct + Country string + NoDeployments int + type LocationService interface + GetLocation func(ctx context.Context, ip string) (ip2location.IP2Locationrecord, error) + func NewLocationService(dbfilepath string) (LocationService, error) + type PageMetadata struct + Limit uint64 + Offset uint64 + Total uint64 + type Service interface + Retrieve func(ctx context.Context, pm PageMetadata, filters TelemetryFilters) (TelemetryPage, error) + RetrieveSummary func(ctx context.Context, filters TelemetryFilters) (TelemetrySummary, error) + Save func(ctx context.Context, t Telemetry) error + ServeUI func(ctx context.Context, filters TelemetryFilters) ([]byte, error) + func New(repo TelemetryRepo, locSvc LocationService) Service + type Telemetry struct + City string + Country string + IpAddress string + LastSeen time.Time + Latitude float64 + Longitude float64 + Service string + ServiceTime time.Time + Services pq.StringArray + Version string + type TelemetryFilters struct + City string + Country string + From time.Time + Service string + To time.Time + Version string + type TelemetryPage struct + Telemetry []Telemetry + type TelemetryRepo interface + RetrieveAll func(ctx context.Context, pm PageMetadata, filters TelemetryFilters) (TelemetryPage, error) + RetrieveSummary func(ctx context.Context, filters TelemetryFilters) (TelemetrySummary, error) + Save func(ctx context.Context, t Telemetry) error + type TelemetrySummary struct + Cities []string + Countries []CountrySummary + Services []string + TotalDeployments int + Versions []string