Documentation ¶
Index ¶
- func GenerateDataPoint(entity string, date time.Time, value float64) *metricdata.DataPoint[float64]
- func GenerateMetrics(metricName string, dataPoints []metricdata.DataPoint[float64]) *metricdata.Metrics
- func GenerateResourceMetrics(metrics []metricdata.Metrics) *metricdata.ResourceMetrics
- func Run()
- type BenchmarkReport
- type FileContents
- type GithubService
- type RepoSource
- type ReportMetrics
- type SingleFileCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDataPoint ¶
func GenerateMetrics ¶
func GenerateMetrics(metricName string, dataPoints []metricdata.DataPoint[float64]) *metricdata.Metrics
func GenerateResourceMetrics ¶
func GenerateResourceMetrics(metrics []metricdata.Metrics) *metricdata.ResourceMetrics
Types ¶
type BenchmarkReport ¶
type BenchmarkReport struct { MetricNames []string ResourceMetrics metricdata.ResourceMetrics ReportData map[string]string }
func (*BenchmarkReport) FetchReports ¶
func (b *BenchmarkReport) FetchReports(ctx context.Context, timeframe []string, commitCache, reportCache SingleFileCache, githubService RepoSource)
func (*BenchmarkReport) GenerateReport ¶
func (b *BenchmarkReport) GenerateReport(timeframe []string)
type FileContents ¶
type FileContents struct {
// contains filtered or unexported fields
}
func (*FileContents) ToString ¶
func (fc *FileContents) ToString() string
type GithubService ¶
type GithubService struct {
// contains filtered or unexported fields
}
func (*GithubService) GetFileContentsAtCommit ¶
func (gs *GithubService) GetFileContentsAtCommit(ctx context.Context, sha string) FileContents
func (*GithubService) GetMostRecentCommitSHA ¶
type RepoSource ¶
type ReportMetrics ¶
func ParseReport ¶
func ParseReport(report string) ReportMetrics
type SingleFileCache ¶
type SingleFileCache struct {
// contains filtered or unexported fields
}
func NewSingleFileCache ¶
func NewSingleFileCache(location string) *SingleFileCache
func (*SingleFileCache) AddToCache ¶
func (c *SingleFileCache) AddToCache(key string, value string) error
func (*SingleFileCache) DeleteCache ¶
func (c *SingleFileCache) DeleteCache() error
func (*SingleFileCache) RetrieveValue ¶
func (c *SingleFileCache) RetrieveValue(key string) (string, error)
Click to show internal directories.
Click to hide internal directories.