Documentation ¶
Index ¶
- Constants
- Variables
- func NewCountCollector(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, ...) *analytic.CountCollector
- func NewGlobalDatabaseCredentials(dbCredentials *config.DatabaseCredentials) *config.GlobalDatabaseCredentialsEnvironmentConfig
- func NewLoggerFactory() *log.Factory
- func NewPeriodicalArgumentParser() *periodical.ArgumentParser
- func NewPosthogIntegration(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, ...) *analytic.PosthogIntegration
- func NewProjectHourlyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, ...) *analytic.ProjectHourlyReport
- func NewProjectMonthlyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, ...) *analytic.ProjectMonthlyReport
- func NewProjectWeeklyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, ...) *analytic.ProjectWeeklyReport
- func NewUserWeeklyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials) *analytic.UserWeeklyReport
- func OutputReport(ctx context.Context, options *OutputReportOptions, data *analytic.ReportData) error
- type OutputReportOptions
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 ¶
View Source
var DependencySet = wire.NewSet( NewLoggerFactory, clock.DependencySet, config.NewDefaultDatabaseEnvironmentConfig, NewGlobalDatabaseCredentials, config.NewDefaultRedisEnvironmentConfig, globaldb.DependencySet, appdb.NewHandle, appdb.DependencySet, auditdb.NewReadHandle, auditdb.NewWriteHandle, auditdb.DependencySet, analyticredis.NewHandle, meter.DependencySet, analytic.DependencySet, wire.Bind(new(analytic.ReadCounterStore), new(*meter.ReadStoreRedis)), wire.Bind(new(analytic.MeterAuditDBReadStore), new(*meter.AuditDBReadStore)), )
Functions ¶
func NewCountCollector ¶
func NewCountCollector(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials, redisPool *redis.Pool, credentials *config.AnalyticRedisCredentials) *analytic.CountCollector
func NewGlobalDatabaseCredentials ¶
func NewGlobalDatabaseCredentials(dbCredentials *config.DatabaseCredentials) *config.GlobalDatabaseCredentialsEnvironmentConfig
func NewLoggerFactory ¶
func NewPeriodicalArgumentParser ¶
func NewPeriodicalArgumentParser() *periodical.ArgumentParser
func NewPosthogIntegration ¶
func NewPosthogIntegration(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials, redisPool *redis.Pool, credentials *config.AnalyticRedisCredentials, posthogCredentials *analytic.PosthogCredentials) *analytic.PosthogIntegration
func NewProjectHourlyReport ¶
func NewProjectHourlyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials) *analytic.ProjectHourlyReport
func NewProjectMonthlyReport ¶
func NewProjectMonthlyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials) *analytic.ProjectMonthlyReport
func NewProjectWeeklyReport ¶
func NewProjectWeeklyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials, auditDatabaseCredentials *config.AuditDatabaseCredentials) *analytic.ProjectWeeklyReport
func NewUserWeeklyReport ¶
func NewUserWeeklyReport(pool *db.Pool, databaseCredentials *config.DatabaseCredentials) *analytic.UserWeeklyReport
func OutputReport ¶
func OutputReport(ctx context.Context, options *OutputReportOptions, data *analytic.ReportData) error
Types ¶
type OutputReportOptions ¶
Click to show internal directories.
Click to hide internal directories.