analytic

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CollectIntervalTypeDaily = "daily"
View Source
const CollectIntervalTypeMonthly = "monthly"
View Source
const CollectIntervalTypeWeekly = "weekly"
View Source
const ReportOutputTypeCSV = "csv"
View Source
const ReportOutputTypeGoogleSheets = "google-sheets"
View Source
const ReportTypeProject = "project"
View Source
const ReportTypeUser = "user"

Variables

Functions

func NewCountCollector

func NewCountCollector(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials, redisPool *redis.Pool, credentials *config.AnalyticRedisCredentials) *analytic.CountCollector

func NewLoggerFactory

func NewLoggerFactory() *log.Factory

func NewPeriodicalArgumentParser

func NewPeriodicalArgumentParser() *periodical.ArgumentParser

func NewPosthogIntegration

func NewPosthogIntegration(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials, redisPool *redis.Pool, credentials *config.AnalyticRedisCredentials, posthogCredentials *analytic.PosthogCredentials) *analytic.PosthogIntegration

func NewProjectHourlyReport

func NewProjectHourlyReport(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials) *analytic.ProjectHourlyReport

func NewProjectMonthlyReport

func NewProjectMonthlyReport(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials) *analytic.ProjectMonthlyReport

func NewProjectWeeklyReport

func NewProjectWeeklyReport(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials) *analytic.ProjectWeeklyReport

func NewUserWeeklyReport

func NewUserWeeklyReport(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials) *analytic.UserWeeklyReport

func OutputReport

func OutputReport(ctx context.Context, options *OutputReportOptions, data *analytic.ReportData) error

Types

type OutputReportOptions

type OutputReportOptions struct {
	OutputType                               string
	CSVOutputFilePath                        string
	GoogleOAuthClientCredentialsJSONFilePath string
	GoogleOAuthTokenFilePath                 string
	SpreadsheetOutputMode                    analytic.OutputGoogleSpreadsheetMode
	SpreadsheetID                            string
	SpreadsheetRange                         string
}

Jump to

Keyboard shortcuts

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