Skip to content

A simple HTTP server for retrieving basic information of the hosted server such as hostname, IP, user.

License

Notifications You must be signed in to change notification settings

nhoclove/whoami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHOAMi

Build Status codecov License

Description

A simple HTTP service

Features

  • Exposes 2 REST APIs
    • POST: /whoami
    • GET:/ whoami
  • Responses in JSON format

How to

  • Run local:

    go run main.go --addr=localhost:3000

  • Run with Docker:

    $ docker build -t whoami:latest .
    $ docker run --rm -it --name=whoami -p 3000:3000 whoami:latest
    

About

A simple HTTP server for retrieving basic information of the hosted server such as hostname, IP, user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published