Categorygithub.com/dotLou/go-echo-server
modulepackage
5.0.1+incompatible
Repository: https://github.com/dotlou/go-echo-server.git
Documentation: pkg.go.dev

# README

go-echo-server

Docker Cloud Automated build Docker Cloud Build Status Golang v1.12

Simple echo HTTP server with a fake auth endpoint

Endpoints

/

Useful for echoing back what it got, such as headers, method, body.

Supported methods:

  • OPTIONS
  • GET
  • POST

/fakeAuth

Useful for using as a test nginx authentication sub-request. Will pass if given an Authorization header of Bearer valid-key, will fail otherwise

Supported methods:

  • OPTIONS
  • GET

k8s

Some kubernetes resource files are provided so that this can run behind an nginx-ingress controller, with the auth-url configured for / to use /fakeAuth as the authentication path.

# Structs

EchoResponse is used to response to requests with the provided request details.