server: Index | Files

package frontend

import ""

Package frontend is goma service frontend (/cxx-compiler-service/*).


Package Files

doc.go frontend.go


const (
    // PathPrefix is goma endpoint prefix.
    PathPrefix = "/cxx-compiler-service/"


var (

    // DefaultViews are the default views provided by this package.
    // You need to register he view for data to actually be collected.
    DefaultViews = []*view.View{
            Name:        "",
            Description: "ping request count by user-agent",
            TagKeys: []tag.Key{
            Measure:     pingRequests,
            Aggregation: view.Count(),

func Handler Uses

func Handler(f Frontend) http.Handler

Handler creates http.Handler from Frontend.

func Register Uses

func Register(mux *http.ServeMux, f Frontend)

Register registers Frontend under PathPrefix (/cxx-compiler-service).

type Backend Uses

type Backend interface {
    Ping() http.Handler
    Exec() http.Handler
    ByteStream() http.Handler
    StoreFile() http.Handler
    LookupFile() http.Handler
    Execlog() http.Handler

Backend represents backend of goma frontend.

type Frontend Uses

type Frontend struct {
    AC      httprpc.AdmissionController
    Backend Backend

    TraceLabels map[string]string

Frontend represents goma frontend.

Package frontend imports 15 packages (graph) and is imported by 2 packages. Updated 2020-10-27. Refresh now. Tools for package owners.