build: Index | Files

package dashboard

import ""

Package dashboard contains the implementation of the build dashboard for the Coordinator.


Package Files

datastore.go handler.go

type Commit Uses

type Commit struct {
    PackagePath string // (empty for main repo commits)
    Hash        string

    // ResultData is the Data string of each build Result for this Commit.
    // For non-Go commits, only the Results for the current Go tip, weekly,
    // and release Tags are stored here. This is purely de-normalized data.
    // The complete data set is stored in Result entities.
    // Each string is formatted as builder|OK|LogHash|GoHash.
    ResultData []string `datastore:",noindex"`

A Commit describes an individual commit in a package.

Each Commit entity is a descendant of its associated Package entity. In other words, all Commits with the same PackagePath belong to the same datastore entity group.

type Handler Uses

type Handler struct {
    // Datastore is a client used for fetching build status. If nil, it uses in-memory storage of build status.
    Datastore *datastore.Client
    // Maintner is a client for Maintner, used for fetching lists of commits.
    Maintner MaintnerClient
    // contains filtered or unexported fields

func (*Handler) ServeHTTP Uses

func (d *Handler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type MaintnerClient Uses

type MaintnerClient interface {
    // GetDashboard is extracted from apipb.MaintnerServiceClient.
    GetDashboard(ctx context.Context, in *apipb.DashboardRequest, opts ...grpc4.CallOption) (*apipb.DashboardResponse, error)

MaintnerClient is a subset of apipb.MaintnerServiceClient.

Package dashboard imports 15 packages (graph) and is imported by 1 packages. Updated 2021-01-22. Refresh now. Tools for package owners.