rate_table

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package rate_table contains the top level app-engine code to create datastore and memcache entries to control mlab-ns rate limiting. TODO - add more metrics? TODO - update travis submodule after deploy_app changes are committed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataset

func NewDataset(ctx context.Context, project, dataset string, clientOpts ...option.ClientOption) (bqext.Dataset, error)

NewDataset creates a Dataset for a project. httpClient is used to inject mocks for the bigquery client. If httpClient is nil, a suitable default client is used. Additional bigquery ClientOptions may be optionally passed as final clientOpts argument. This is useful for testing credentials. TODO - update go/bqext version to accept a context.

func Status

func Status(w http.ResponseWriter, r *http.Request)

Status writes an instance summary into the response. TODO(gfr) Add either a black list or a white list for the environment variables, so we can hide sensitive vars. https://github.com/m-lab/etl/issues/384

func Update

func Update(w http.ResponseWriter, r *http.Request)

Update pulls new data from BigQuery, and pushes updated key/value pairs to datastore. TODO - also update bloom filter and memcache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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