https-call-sample

command
v0.0.0-...-c167260 Latest Latest
Warning

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

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

README

HTTPs Call Using Load Balancer

This sample illustrates how to make an HTTPs call using a load balancer.

This will not run on your machine unless you do the following:

  1. In your golang root (try /usr/local/go) locate src/crypto/tls/generate_cert.go, and build it.
  2. Use generate_cert to generate a cacert for this example:
generate_cert -ca -host `hostname`
  1. Copy the generated cert.pem into this directory, and insert the contents of cert.pem and key.pem into inposter-https.json.

To run the sample, start (or restart) mountebank, run sample-setup.sh, then

env XAVI_KVSTORE_URL=file:///`pwd`/config go run lbsample.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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