Back to godoc.org

Package frontend

v0.0.15
Latest Go to latest

The latest major version is .

Published: Jul 31, 2020 | License: BSD-3-Clause | Module: go.chromium.org/goma/server

Overview

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

Index

Constants

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

Variables

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:        "go.chromium.org/goma/server/frontend.ping_count_by_useragent",
			Description: "ping request count by user-agent",
			TagKeys: []tag.Key{
				userAgentCommitHashKey,
				userAgentCommitTimeKey,
			},
			Measure:     pingRequests,
			Aggregation: view.Count(),
		},
	}
)

func Handler

func Handler(f Frontend) http.Handler

Handler creates http.Handler from Frontend.

func Register

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

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

type Backend

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

type Frontend struct {
	AC      httprpc.AdmissionController
	Backend Backend

	TraceLabels map[string]string
}

Frontend represents goma frontend.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier