Back to godoc.org

Package impl

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package impl instantiates the full implementation of the CIPD backend services.

It is imported by GAE's frontend and backend modules that expose appropriate bits and pieces over pRPC and HTTP.

Index

Variables

var (
	// TQ is global Task Queue dispatcher used by the CIPD service.
	//
	// It serializes and routes Task Queue tasks. The tasks are registered in
	// the constructors below. The router is installed in 'backend' module only,
	// since we executed tasks only there.
	TQ = tq.Dispatcher{BaseURL: "/internal/tq/"}

	// InternalCAS is non-ACLed implementation of cas.StorageService to be used
	// only from within the backend code itself.
	InternalCAS = cas.Internal(&TQ)

	// PublicCAS is ACL-protected implementation of cas.StorageServer that can be
	// exposed as a public API.
	PublicCAS = cas.Public(InternalCAS)

	// PublicRepo is ACL-protected implementation of cipd.RepositoryServer that
	// can be exposed as a public API.
	PublicRepo = repo.Public(InternalCAS, &TQ)

	// AdminAPI is ACL-protected implementation of cipd.AdminServer that can be
	// exposed as an external API to be used by administrators.
	AdminAPI = admin.AdminAPI(&TQ)
)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

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