optionalcloud

command module
v0.0.0-...-6ccdeb7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2016 License: BSD-2-Clause Imports: 18 Imported by: 0

README

optionalcloud

An experiment running Go program as AWS Lambda to route and serve HTTP APIs on AWS API Gateway, while retaining the freedom of running the same HTTP APIs using custom HTTP servers without the involvement of AWS API Gateway.

Features

  • GET / - Display a greeting message.
  • POST /login/{username}?password= - Authenticate a user using username/password combination, return JWT if authorised.
  • GET /login - Return user name if the Authorization header in the incoming request contains a valid JWT.
  • Run stand-alone HTTP server to serve the same APIs.

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