cloudfoundry-samples/logging-route-service

Name: logging-route-service

Owner: Cloud Foundry Sample Applications

Description: A sample route service written in Go.

Created: 2015-07-02 21:01:40.0

Updated: 2017-11-13 16:15:55.0

Pushed: 2017-10-24 18:32:52.0

Homepage:

Size: 115

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Example Route Service

An example route service for Cloud Foundry.

Route Service Overview

The Route Service feature is currently in development, the proposal can be found in this Google Doc.

This example route service uses the new headers/features that have been added to the GoRouter. For example:

Getting Started
Environment Variables
ROUTE_SERVICE_SLEEP_MILLI

If you set this environment variable in the running app, the route service will sleep for that many milliseconds before proxying the request. This can be used to simulate route services that are slow to respond.

Example (10 seconds):

et-env logging-route-service ROUTE_SERVICE_SLEEP_MILLI 10000
estage logging-route-service
SKIP_SSL_VALIDATION

If you set this environment variable to false, the route service will validate SSL certificates. By default the route service skips SSL validation.

Example:

et-env logging-route-service SKIP_SSL_VALIDATION false
estart logging-route-service

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.