Sign inSign up

ldclakmal/go-echo-backend

By ldclakmal

•Updated over 6 years ago

GoLang Echo Backend (TLS enabled)

Image
0

970

ldclakmal/go-echo-backend repository overview

⁠Go Echo Backend

A Docker image of Go service which echo back the request payload. Supports both HTTP/1.1 and HTTP/2 with SSL. Also, supports any type of request payload such as text, json, xml etc.

⁠Installed
  1. Ubuntu 16.04
  2. Go 1.14.2
⁠Run the image
  • HTTP/1.1 - $ docker run -d -p 9191:9191 -e "VERSION=1" ldclakmal/go-echo-backend:latest

  • HTTP/2 - $ docker run -d -p 9191:9191 -e "VERSION=2" -e "MAXSTREAM=1000" ldclakmal/go-echo-backend:latest


⁠Test the image
  • HTTP/1.1 - $ curl -kv https://localhost:9191/hello/sayHello -d "Hello GoLang"

  • HTTP/2- $ curl --http2 -kv https://localhost:9191/hello/sayHello -d "Hello GoLang"

Tag summary

Content type

Image

Digest

Size

338.3 MB

Last updated

over 6 years ago

docker pull ldclakmal/go-echo-backend