quickhistory

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package quickhistory exposes bounded, chronological quick-test history.

Index

Constants

View Source
const PageSize = 25
View Source
const TimeLayout = "2006-01-02T15:04:05.000000000Z"

Cursor timestamps have fixed nanosecond precision for lossless SQL ordering.

Variables

View Source
var ErrInvalid = errors.New("invalid quick history page")

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Time string
	Kind string
	ID   string
}

func ParseCursor

func ParseCursor(value string) (Cursor, error)

type Page

type Page struct {
	SchemaVersion int                    `json:"schema_version"`
	Runs          []workspace.RunSummary `json:"runs"`
	Reports       []reporting.Summary    `json:"reports"`
	NextCursor    string                 `json:"next_cursor"`
}

type Projection

type Projection struct {
	Runs        []workspace.RunProjection
	Performance []quicktest.PerformanceArchiveSummary
	NextCursor  string
}

type Repository

type Repository interface {
	ListQuickHistory(context.Context, string) (Projection, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(repository Repository) Service

func (Service) Page

func (service Service) Page(ctx context.Context, after string) (Page, error)

Jump to

Keyboard shortcuts

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