remote

package
v0.0.0-...-4a11b79 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(host string, insecure bool, clients ClientFactory) config.Interface

New returns an implementation of the config service which talks to the actual luci-config service using given transport.

configServiceURL is usually "https://<host>/_ah/api/config/v1/".

ClientFactory returns http.Clients to use for requests (given incoming contexts). It's required mostly to support GAE environment, where round trippers are bound to contexts and carry RPC deadlines.

If 'clients' is nil, http.DefaultClient will be used for all requests.

Types

type ClientFactory

type ClientFactory func(context.Context) (*http.Client, error)

ClientFactory returns HTTP client to use (given a context).

See 'New' for more details.

Jump to

Keyboard shortcuts

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