Versions in this module Expand all Collapse all v0 v0.2.0 Oct 11, 2026 Changes in this version + const DefaultEnvPrefix + func InitDatabase(cfg *DatabaseConfig) (*sql.DB, error) + func OpenDatabase(cfg *DatabaseConfig) (*sql.DB, error) + type Analytics struct + AverageDuration float64 + CancelledRuns int + FlakyTests []FlakyTest + SkippedRuns int + SuccessRate float64 + TotalRuns int + TrendData []TrendPoint + func GetAnalytics(ctx context.Context, db *sql.DB, repositoryID int64, days int) (*Analytics, error) + type CacheConfig struct + MaxEntries int + StatsTTL time.Duration + WorkflowTTL time.Duration + type Config struct + Access auth.AccessPolicy + Cache CacheConfig + Database DatabaseConfig + DemoMode bool + Github githubapp.Config + Logging LoggingConfig + Options DashboardOptions + Server baseapp.HTTPConfig + Sessions SessionsConfig + func ParseConfig(bytes []byte) (*Config, error) + type DashboardOptions struct + DefaultTimeWindow string + EnableRealtime bool + MaxReposPerPage int + type DatabaseConfig struct + CloudSQLInstance string + DBName string + Driver string + MaxIdleConns int + MaxOpenConns int + Password string + URL string + User string + type FlakyTest struct + FailureCount int + FlakeRate float64 + LastFailure time.Time + Name string + Repository string + TotalRuns int + func GetFlakyTests(ctx context.Context, db *sql.DB, repositoryID int64, minRuns int, days int) ([]FlakyTest, error) + type LoggingConfig struct + Level string + Text bool + type Repository struct + CancelledRuns int + CreatedAt time.Time + DefaultBranch string + FailedRuns int + FullName string + ID int64 + Name string + Owner string + SkippedRuns int + SuccessRate float64 + SuccessfulRuns int + TotalRuns int + UpdatedAt time.Time + func GetRepositories(ctx context.Context, db *sql.DB, withStats bool) ([]Repository, error) + type Server struct + func New(config *Config) (*Server, error) + func (s *Server) Close() error + func (s *Server) Handler() http.Handler + func (s *Server) Start() error + type SessionsConfig struct + Lifetime int + Secure *bool + type TrendPoint struct + Date string + SuccessRate float64 + TotalRuns int + func GetTrendData(ctx context.Context, db *sql.DB, repositoryID int64, days int) ([]TrendPoint, error) + type WorkflowGridRow struct + Cells []*WorkflowRun + Name string + type WorkflowRun struct + Conclusion string + CreatedAt time.Time + Event string + HTMLURL string + HeadBranch string + HeadSHA string + ID int64 + RepositoryFullName string + RepositoryID int64 + RunNumber int + RunStartedAt *time.Time + Status string + UpdatedAt time.Time + WorkflowID int64 + WorkflowName string + WorkflowPath string + func GetWorkflowRuns(ctx context.Context, db *sql.DB, opts WorkflowRunOptions) ([]WorkflowRun, error) + type WorkflowRunOptions struct + Conclusion string + Event string + HeadBranch string + Limit int + Offset int + RepositoryID int64 + Since time.Time + Status string + WorkflowName string